diff options
Diffstat (limited to 'client_conn.go')
-rw-r--r-- | client_conn.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client_conn.go b/client_conn.go index 228abb9..cb1e6a8 100644 --- a/client_conn.go +++ b/client_conn.go @@ -235,7 +235,10 @@ func handleClt(cc *clientConn) { break } - cc.auth.method = 0 + cc.auth = struct { + method mt.AuthMethods + salt, srpA, srpB, srpM, srpK []byte + }{} if cmd.EmptyPasswd && conf.RequirePasswd { cc.log("<--", "empty password disallowed") @@ -390,7 +393,10 @@ func handleClt(cc *clientConn) { M := srp.ClientProof([]byte(cc.name), cc.auth.salt, cc.auth.srpA, cc.auth.srpB, cc.auth.srpK) if subtle.ConstantTimeCompare(cmd.M, M) == 1 { - cc.auth.method = 0 + cc.auth = struct { + method mt.AuthMethods + salt, srpA, srpB, srpM, srpK []byte + }{} if wantSudo { cc.state++ |