diff options
| author | John Kohl <jtkohl@mit.edu> | 1991-02-27 11:59:08 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1991-02-27 11:59:08 +0000 |
| commit | 7396e97b9912dceb488f20be9f10bf02c8b81493 (patch) | |
| tree | 9bc937596aff72a6b8fd7d03b2c108fa1f090c85 | |
| parent | d3e017d18e880d692492ca176ad96ed1d5dacd99 (diff) | |
zero out creds to avoid garbage pointers
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1801 dc483132-0cff-0310-8789-dd5450dbe970
| -rw-r--r-- | src/lib/krb425/get_cred.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/krb425/get_cred.c b/src/lib/krb425/get_cred.c index a97209e96..69bfe6f57 100644 --- a/src/lib/krb425/get_cred.c +++ b/src/lib/krb425/get_cred.c @@ -2,7 +2,8 @@ * $Source$ * $Author$ * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. * * For copying and distribution information, please see the file * <krb5/copyright.h>. @@ -15,7 +16,6 @@ static char rcsid_get_cred_c[] = "$Id$"; #endif /* !lint & !SABER */ -#include <krb5/copyright.h> #include "krb425.h" int @@ -47,6 +47,7 @@ CREDENTIALS *c; if (!client_principal) krb5_cc_get_principal(_krb425_ccache, &client_principal); + memset((char *)&creds, 0, sizeof(creds)); creds.client = client_principal; creds.server = server; creds.times.endtime = 0; |
