diff options
author | assar <assar@FreeBSD.org> | 2000-12-10 21:00:35 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2000-12-10 21:00:35 +0000 |
commit | 636a56109d1aff50825815b7f559cae559cd0e10 (patch) | |
tree | 867205e111e4c15e1724330c56ea8fa3977b6187 /crypto/kerberosIV | |
parent | 1419c7c47afbee75489dfb6986decbbf2ff6c489 (diff) | |
parent | 32ce969d51756de86d53a1779b7fd3c5e8102afc (diff) | |
download | FreeBSD-src-636a56109d1aff50825815b7f559cae559cd0e10.zip FreeBSD-src-636a56109d1aff50825815b7f559cae559cd0e10.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r69833,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/kerberosIV')
-rw-r--r-- | crypto/kerberosIV/lib/krb/kdc_reply.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/kerberosIV/lib/krb/kdc_reply.c b/crypto/kerberosIV/lib/krb/kdc_reply.c index 7a069e4..2c940ec 100644 --- a/crypto/kerberosIV/lib/krb/kdc_reply.c +++ b/crypto/kerberosIV/lib/krb/kdc_reply.c @@ -121,6 +121,9 @@ kdc_reply_cipher(KTEXT reply, KTEXT cip) p += krb_get_int(p, &exp_date, 4, little_endian); p++; /* master key version number */ p += krb_get_int(p, &clen, 2, little_endian); + if (reply->length - (p - reply->dat) < clen) + return INTK_PROT; + cip->length = clen; memcpy(cip->dat, p, clen); p += clen; |