From f291c297a152f78ac417dbbce6730c0b69a1891f Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Sat, 22 Jun 2002 23:09:52 +0000 Subject: save auth method before monitor_reset_key_state(); bugzilla bug #284; ok provos@ --- usr.bin/ssh/monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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 @@ -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); } -- cgit v1.2.3