Browse Source

fix nil-pointer error in SecretConnection handshake

pull/113/head
Jae Kwon 10 years ago
parent
commit
84705caefb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      p2p/secret_connection.go

+ 3
- 0
p2p/secret_connection.go View File

@ -52,6 +52,9 @@ func MakeSecretConnection(conn io.ReadWriteCloser, locPrivKey acm.PrivKeyEd25519
// Write local ephemeral pubkey and receive one too.
remEphPub, err := shareEphPubKey(conn, locEphPub)
if err != nil {
return nil, err
}
// Compute common shared secret.
shrSecret := computeSharedSecret(remEphPub, locEphPriv)


Loading…
Cancel
Save