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/get_cred.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/get_cred.c')
-rw-r--r-- | kerberosIV/krb/get_cred.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kerberosIV/krb/get_cred.c b/kerberosIV/krb/get_cred.c index 03d38bf4fce..b9679519a86 100644 --- a/kerberosIV/krb/get_cred.c +++ b/kerberosIV/krb/get_cred.c @@ -1,3 +1,4 @@ +/* $OpenBSD: get_cred.c,v 1.3 1997/12/09 07:57:15 art Exp $ */ /* $KTH: get_cred.c,v 1.6 1997/05/30 17:38:29 bg Exp $ */ /* @@ -41,7 +42,7 @@ krb_get_cred(char *service, /* Service name */ int tf_status; /* return value of tf function calls */ CREDENTIALS cr; - if (c == 0) + if (c == NULL) c = &cr; /* Open ticket file and lock it for shared reading */ |