diff --git a/p2p/conn/secret_connection.go b/p2p/conn/secret_connection.go index cd3fba535..c14f1bb5c 100644 --- a/p2p/conn/secret_connection.go +++ b/p2p/conn/secret_connection.go @@ -361,9 +361,9 @@ func computeDHSecret(remPubKey, locPrivKey *[32]byte) (*[32]byte, error) { if err != nil { return nil, err } - var array [32]byte - copy(array[:], shrKey) - return &array, nil + var shrKeyArray [32]byte + copy(shrKeyArray[:], shrKey) + return &shrKeyArray, nil } func sort32(foo, bar *[32]byte) (lo, hi *[32]byte) {