From 6e5058baadf9730b334298ee694a1784b617eb21 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 5 Nov 2019 07:47:13 -0800 Subject: [PATCH] ssh: fix dropped error This fixes an error variable that was being dropped prior to the return of dhGroup.Server(). Change-Id: I8ddef1832cd7a62a69b61bb1c98bc1ceb561f985 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/205420 Run-TryBot: Emmanuel Odeke TryBot-Result: Gobot Gobot Reviewed-by: Emmanuel Odeke --- ssh/kex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/kex.go b/ssh/kex.go index 16072004..6c3c648f 100644 --- a/ssh/kex.go +++ b/ssh/kex.go @@ -212,7 +212,7 @@ func (group *dhGroup) Server(c packetConn, randSource io.Reader, magics *handsha HostKey: hostKeyBytes, Signature: sig, Hash: crypto.SHA1, - }, nil + }, err } // ecdh performs Elliptic Curve Diffie-Hellman key exchange as