From: John Kohl Date: Wed, 27 Feb 1991 11:59:08 +0000 (+0000) Subject: zero out creds to avoid garbage pointers X-Git-Tag: krb5-1.0-alpha4~171 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7396e97b9912dceb488f20be9f10bf02c8b81493;p=krb5.git zero out creds to avoid garbage pointers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1801 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 * . @@ -15,7 +16,6 @@ static char rcsid_get_cred_c[] = "$Id$"; #endif /* !lint & !SABER */ -#include #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;