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/tkt_string.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/tkt_string.c')
-rw-r--r-- | kerberosIV/krb/tkt_string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kerberosIV/krb/tkt_string.c b/kerberosIV/krb/tkt_string.c index 5bc67e2562c..2795995035e 100644 --- a/kerberosIV/krb/tkt_string.c +++ b/kerberosIV/krb/tkt_string.c @@ -1,3 +1,4 @@ +/* $OpenBSD: tkt_string.c,v 1.5 1997/12/09 07:57:41 art Exp $ */ /* $KTH: tkt_string.c,v 1.11 1997/10/24 10:18:07 assar Exp $ */ /* @@ -44,7 +45,7 @@ tkt_string(void) { char *env; - if (!*krb_ticket_string) { + if (krb_ticket_string[0] == '\0') { if ((env = getenv("KRBTKFILE"))) { strncpy(krb_ticket_string, env, sizeof(krb_ticket_string)-1); |