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/rd_priv.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/rd_priv.c')
-rw-r--r-- | kerberosIV/krb/rd_priv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kerberosIV/krb/rd_priv.c b/kerberosIV/krb/rd_priv.c index 9c8c6327dcf..efba87e8014 100644 --- a/kerberosIV/krb/rd_priv.c +++ b/kerberosIV/krb/rd_priv.c @@ -1,3 +1,4 @@ +/* $OpenBSD: rd_priv.c,v 1.4 1997/12/09 07:57:33 art Exp $ */ /* $KTH: rd_priv.c,v 1.24 1997/05/14 17:53:29 joda Exp $ */ /* @@ -75,6 +76,9 @@ krb_rd_priv(void *in, u_int32_t in_length, unsigned char pvno, type; + if (p == NULL) + return KFAILURE; + pvno = *p++; if(pvno != KRB_PROT_VERSION) return RD_AP_VERSION; |