zero out creds to avoid garbage pointers
authorJohn Kohl <jtkohl@mit.edu>
Wed, 27 Feb 1991 11:59:08 +0000 (11:59 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 27 Feb 1991 11:59:08 +0000 (11:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1801 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb425/get_cred.c

index a97209e967c54d1c0e6cc3ace105ee5dd63b874b..69bfe6f57e06dfd1bba7b5152d1daaf94e180387 100644 (file)
@@ -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;