]> Cypherpunks.ru repositories - govpn.git/blobdiff - transport.go
Nicer code construction
[govpn.git] / transport.go
index 09b8bddb7cb84b30980cd949e63c992afcf61a89..f15f4fc945aa582a350d99e72de8de5545708f1b 100644 (file)
@@ -296,7 +296,7 @@ func (p *Peer) EthProcess(ethPkt []byte, conn WriteToer, ready chan struct{}) {
                p.HeartbeatSent++
        }
 
-       p.NonceOur = p.NonceOur + 2
+       p.NonceOur += 2
        copy(p.nonce, Emptiness)
        binary.PutUvarint(p.nonce, p.NonceOur)
        p.NonceCipher.Encrypt(p.nonce, p.nonce)