summaryrefslogtreecommitdiff
path: root/lib/libtelnet/kerberos.c
diff options
context:
space:
mode:
authorHans Insulander <hin@cvs.openbsd.org>2000-07-11 09:29:29 +0000
committerHans Insulander <hin@cvs.openbsd.org>2000-07-11 09:29:29 +0000
commit30b1ea31fa19eb70dd8dd63584ddddc93ab74c5f (patch)
treebfb381d048a3f43a93f263a7444db5c303756153 /lib/libtelnet/kerberos.c
parent64856c54b3b477edc55793247d962e12d184b4dd (diff)
New kerberos takes length of the strings passed to the krb_get_nir() function.
Diffstat (limited to 'lib/libtelnet/kerberos.c')
-rw-r--r--lib/libtelnet/kerberos.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libtelnet/kerberos.c b/lib/libtelnet/kerberos.c
index 67a7a481e6b..6449556c141 100644
--- a/lib/libtelnet/kerberos.c
+++ b/lib/libtelnet/kerberos.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: kerberos.c,v 1.2 2000/02/25 16:43:21 hin Exp $ */
-/* $Id: kerberos.c,v 1.2 2000/02/25 16:43:21 hin Exp $ */
+/* $OpenBSD: kerberos.c,v 1.3 2000/07/11 09:29:28 hin Exp $ */
+/* $Id: kerberos.c,v 1.3 2000/07/11 09:29:28 hin Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -655,7 +655,10 @@ unpack_cred(unsigned char *buf, int len, CREDENTIALS *cred)
memcpy(cred->ticket_st.dat, p, cred->ticket_st.length);
cred->ticket_st.mbz = 0;
p += krb_get_int(p, (u_int32_t *)&cred->issue_date, 4, 0);
- p += krb_get_nir(p, cred->pname, cred->pinst, NULL);
+ p += krb_get_nir(p,
+ cred->pname, sizeof(cred->pname),
+ cred->pinst, sizeof(cred->pinst)
+ NULL, 0);
return 0;
}