From fbee577d3babb041c68dc862130f5c167cd265fa Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Fri, 19 Dec 2014 19:36:01 -0800 Subject: [PATCH] secio: at last! bugfix found. --- crypto/secio/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/secio/protocol.go b/crypto/secio/protocol.go index f1620cdc9..f5e38f86a 100644 --- a/crypto/secio/protocol.go +++ b/crypto/secio/protocol.go @@ -205,7 +205,7 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e log.Debugf("2.0.1 exchange recv: %v", selectionInBytes) // u.POut("Remote Peer Identified as %s\n", s.remote) - sigOK, err := s.local.permanentPubKey.Verify(selectionInBytes, exchangeIn.GetSignature()) + sigOK, err := s.remote.permanentPubKey.Verify(selectionInBytes, exchangeIn.GetSignature()) if err != nil { log.Error("2.1 Verify: failed: %s", err) return err