summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-05-15 14:09:22 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-05-15 14:09:22 +0000
commit4496bc8d4facd72b6870c01ab4071de6264054fc (patch)
treeb5076985682cd1e4bf9a2ac317d0c379270678d5 /usr.bin
parent782dd291c3e106d804c772d5a49109766ddd699f (diff)
fix 64bit issue; report itojun@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/auth2-krb5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-krb5.c b/usr.bin/ssh/auth2-krb5.c
index ea4d76da042..dab1a0766f0 100644
--- a/usr.bin/ssh/auth2-krb5.c
+++ b/usr.bin/ssh/auth2-krb5.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2-krb5.c,v 1.1 2003/05/14 02:15:47 markus Exp $");
+RCSID("$OpenBSD: auth2-krb5.c,v 1.2 2003/05/15 14:09:21 markus Exp $");
#include <krb5.h>
@@ -42,10 +42,12 @@ static int
userauth_kerberos(Authctxt *authctxt)
{
krb5_data tkt, reply;
+ u_int dlen;
char *client = NULL;
int authenticated = 0;
- tkt.data = packet_get_string(&tkt.length);
+ tkt.data = packet_get_string(&dlen);
+ tkt.length = dlen;
packet_check_eom();
if (PRIVSEP(auth_krb5(authctxt, &tkt, &client, &reply))) {