diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-25 12:20:17 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-25 12:20:17 +1000 |
commit | ef73f50a1218b3ce0143131fd71c4061a9a4a83e (patch) | |
tree | aa0ab963cd3c4cd923f244012537506da15b02d4 /monitor.c | |
parent | 7db40c9e2e457441b1935d425326e507e945c039 (diff) |
- markus@cvs.openbsd.org 2002/09/24 08:46:04
[monitor.c]
only call kerberos code for authctxt->valid
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor.c,v 1.27 2002/09/23 22:11:05 markus Exp $"); | 28 | RCSID("$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) |