summaryrefslogtreecommitdiff
path: root/auth2-krb5.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-krb5.c')
-rw-r--r--auth2-krb5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth2-krb5.c b/auth2-krb5.c
index b4ff16b62..8a18a6092 100644
--- a/auth2-krb5.c
+++ b/auth2-krb5.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-krb5.c,v 1.1 2003/05/14 02:15:47 markus Exp $"); 26RCSID("$OpenBSD: auth2-krb5.c,v 1.2 2003/05/15 14:09:21 markus Exp $");
27 27
28#ifdef KRB5 28#ifdef KRB5
29 29
@@ -44,10 +44,12 @@ static int
44userauth_kerberos(Authctxt *authctxt) 44userauth_kerberos(Authctxt *authctxt)
45{ 45{
46 krb5_data tkt, reply; 46 krb5_data tkt, reply;
47 u_int dlen;
47 char *client = NULL; 48 char *client = NULL;
48 int authenticated = 0; 49 int authenticated = 0;
49 50
50 tkt.data = packet_get_string(&tkt.length); 51 tkt.data = packet_get_string(&dlen);
52 tkt.length = dlen;
51 packet_check_eom(); 53 packet_check_eom();
52 54
53 if (PRIVSEP(auth_krb5(authctxt, &tkt, &client, &reply))) { 55 if (PRIVSEP(auth_krb5(authctxt, &tkt, &client, &reply))) {