diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-09 07:57:43 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-09 07:57:43 +0000 |
commit | eded21a00a253859f474c1bcca5d418a3c82948f (patch) | |
tree | 94e38e1e18679c1a1a5af56a04c549d26eb42255 /kerberosIV/krb/kdc_reply.c | |
parent | 49ac4cb4369b59297c067ed22daacd240c981029 (diff) |
Removed one expliotable hole, one possibly exploitable hole, many buffer
overflows and lots of unchecked pointers. Tags are nice too.
Diffstat (limited to 'kerberosIV/krb/kdc_reply.c')
-rw-r--r-- | kerberosIV/krb/kdc_reply.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kerberosIV/krb/kdc_reply.c b/kerberosIV/krb/kdc_reply.c index 3561955847f..9e2805e4892 100644 --- a/kerberosIV/krb/kdc_reply.c +++ b/kerberosIV/krb/kdc_reply.c @@ -1,3 +1,4 @@ +/* $OpenBSD: kdc_reply.c,v 1.2 1997/12/09 07:57:22 art Exp $ */ /* $KTH: kdc_reply.c,v 1.9 1997/04/15 21:52:14 assar Exp $ */ /* @@ -46,6 +47,9 @@ int kdc_reply_cred(KTEXT cip, CREDENTIALS *cred) { unsigned char *p = cip->dat; + + if (cred == NULL || p == NULL) + return KFAILURE; memcpy(cred->session, p, 8); p += 8; |