diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-06-22 23:09:52 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-06-22 23:09:52 +0000 |
commit | f291c297a152f78ac417dbbce6730c0b69a1891f (patch) | |
tree | f50783df4a7772855d1c2bf7d20527622120077b /usr.bin | |
parent | 72a95fe38161cf8c028f8770e06fea1be9c3b275 (diff) |
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 4957be9cd07..317da924bb4 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor.c,v 1.16 2002/06/21 05:50:51 djm Exp $"); +RCSID("$OpenBSD: monitor.c,v 1.17 2002/06/22 23:09:51 stevesk Exp $"); #include <openssl/dh.h> @@ -944,14 +944,14 @@ mm_answer_keyverify(int socket, Buffer *m) xfree(signature); xfree(data); + auth_method = key_blobtype == MM_USERKEY ? "publickey" : "hostbased"; + monitor_reset_key_state(); buffer_clear(m); buffer_put_int(m, verified); mm_request_send(socket, MONITOR_ANS_KEYVERIFY, m); - auth_method = key_blobtype == MM_USERKEY ? "publickey" : "hostbased"; - return (verified); } |