From 7396e97b9912dceb488f20be9f10bf02c8b81493 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 27 Feb 1991 11:59:08 +0000 Subject: [PATCH] zero out creds to avoid garbage pointers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1801 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb425/get_cred.c | 5 +++-- 1 file 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 * . @@ -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; -- 2.26.2