From: Jason A. Donenfeld Date: Thu, 7 Jul 2016 00:32:40 +0000 (+0200) Subject: go test: put nonce at correct location X-Git-Tag: v1.0.20191226~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a427c702421458c41890cd610c27d197f677082;p=thirdparty%2Fwireguard-tools.git go test: put nonce at correct location Signed-off-by: Jason A. Donenfeld --- diff --git a/contrib/external-tests/go/main.go b/contrib/external-tests/go/main.go index 86fe192..a06b565 100644 --- a/contrib/external-tests/go/main.go +++ b/contrib/external-tests/go/main.go @@ -80,7 +80,7 @@ func main() { keepalivePacket := make([]byte, 13) keepalivePacket[0] = 4 // Type: Data binary.LittleEndian.PutUint32(keepalivePacket[1:], theirIndex) - binary.LittleEndian.PutUint64(keepalivePacket[3:], 0) // Nonce + binary.LittleEndian.PutUint64(keepalivePacket[5:], 0) // Nonce keepalivePacket = sendCipher.Encrypt(keepalivePacket, nil, nil) if _, err := conn.Write(keepalivePacket); err != nil { log.Fatalf("error writing keepalive packet: %s", err)