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/sendauth.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/sendauth.c')
-rw-r--r-- | kerberosIV/krb/sendauth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kerberosIV/krb/sendauth.c b/kerberosIV/krb/sendauth.c index 96ff7c30ba5..d0c71d3e1b4 100644 --- a/kerberosIV/krb/sendauth.c +++ b/kerberosIV/krb/sendauth.c @@ -1,3 +1,4 @@ +/* $OpenBSD: sendauth.c,v 1.4 1997/12/09 07:57:38 art Exp $ */ /* $KTH: sendauth.c,v 1.15 1997/04/18 14:11:36 joda Exp $ */ /* @@ -148,6 +149,8 @@ krb_sendauth(int32_t options, /* bit-pattern of options */ else strncpy (inst, krb_get_phost(instance), sizeof(inst)); + inst[sizeof(inst)-1] = '\0'; + ret = krb_get_cred (service, inst, realm, cred); if (ret != KSUCCESS) return ret; |