summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-25 12:20:17 +1000
committerDamien Miller <djm@mindrot.org>2002-09-25 12:20:17 +1000
commitef73f50a1218b3ce0143131fd71c4061a9a4a83e (patch)
treeaa0ab963cd3c4cd923f244012537506da15b02d4
parent7db40c9e2e457441b1935d425326e507e945c039 (diff)
- markus@cvs.openbsd.org 2002/09/24 08:46:04
[monitor.c] only call kerberos code for authctxt->valid
-rw-r--r--ChangeLog5
-rw-r--r--monitor.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 18dbc784b..f6aa78cee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@
7 - markus@cvs.openbsd.org 2002/09/23 22:11:05 7 - markus@cvs.openbsd.org 2002/09/23 22:11:05
8 [monitor.c] 8 [monitor.c]
9 only call auth_krb5 if kerberos is enabled; ok deraadt@ 9 only call auth_krb5 if kerberos is enabled; ok deraadt@
10 - markus@cvs.openbsd.org 2002/09/24 08:46:04
11 [monitor.c]
12 only call kerberos code for authctxt->valid
10 13
1120020923 1420020923
12 - (tim) [configure.ac] s/return/exit/ patch by dtucker@zip.com.au 15 - (tim) [configure.ac] s/return/exit/ patch by dtucker@zip.com.au
@@ -706,4 +709,4 @@
706 save auth method before monitor_reset_key_state(); bugzilla bug #284; 709 save auth method before monitor_reset_key_state(); bugzilla bug #284;
707 ok provos@ 710 ok provos@
708 711
709$Id: ChangeLog,v 1.2478 2002/09/25 02:19:39 djm Exp $ 712$Id: ChangeLog,v 1.2479 2002/09/25 02:20:17 djm Exp $
diff --git a/monitor.c b/monitor.c
index 69a51fc98..e07e97eac 100644
--- a/monitor.c
+++ b/monitor.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor.c,v 1.27 2002/09/23 22:11:05 markus Exp $"); 28RCSID("$OpenBSD: monitor.c,v 1.28 2002/09/24 08:46:04 markus Exp $");
29 29
30#include <openssl/dh.h> 30#include <openssl/dh.h>
31 31
@@ -1299,7 +1299,8 @@ mm_answer_krb5(int socket, Buffer *m)
1299 tkt.data = buffer_get_string(m, &len); 1299 tkt.data = buffer_get_string(m, &len);
1300 tkt.length = len; 1300 tkt.length = len;
1301 1301
1302 success = (options.kerberos_authentication == 1) && 1302 success = options.kerberos_authentication &&
1303 authctxt->valid &&
1303 auth_krb5(authctxt, &tkt, &client_user, &reply); 1304 auth_krb5(authctxt, &tkt, &client_user, &reply);
1304 1305
1305 if (tkt.length) 1306 if (tkt.length)