summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-25 04:20:17 +0200
committerDamien Miller <djm@mindrot.org>2002-09-25 04:20:17 +0200
commitef73f50a1218b3ce0143131fd71c4061a9a4a83e (patch)
treeaa0ab963cd3c4cd923f244012537506da15b02d4 /monitor.c
parent - markus@cvs.openbsd.org 2002/09/23 22:11:05 (diff)
downloadopenssh-ef73f50a1218b3ce0143131fd71c4061a9a4a83e.tar.xz
openssh-ef73f50a1218b3ce0143131fd71c4061a9a4a83e.zip
- markus@cvs.openbsd.org 2002/09/24 08:46:04
[monitor.c] only call kerberos code for authctxt->valid
Diffstat (limited to '')
-rw-r--r--monitor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 69a51fc98..e07e97eac 100644
--- a/monitor.c
+++ b/monitor.c
@@ -25,7 +25,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: monitor.c,v 1.27 2002/09/23 22:11:05 markus Exp $");
+RCSID("$OpenBSD: monitor.c,v 1.28 2002/09/24 08:46:04 markus Exp $");
#include <openssl/dh.h>
@@ -1299,7 +1299,8 @@ mm_answer_krb5(int socket, Buffer *m)
tkt.data = buffer_get_string(m, &len);
tkt.length = len;
- success = (options.kerberos_authentication == 1) &&
+ success = options.kerberos_authentication &&
+ authctxt->valid &&
auth_krb5(authctxt, &tkt, &client_user, &reply);
if (tkt.length)