From: Asanka Herath Date: Tue, 27 Nov 2007 17:28:44 +0000 (+0000) Subject: windows-nim-afscred-double-free-20071127 X-Git-Tag: BP-openafs-windows-kdfs-ifs~338 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4172d60820fdf3375091b0a451e8d25809019d8d;p=packages%2Fo%2Fopenafs.git windows-nim-afscred-double-free-20071127 fix a double free on error condition --- diff --git a/src/WINNT/netidmgr_plugin/afsfuncs.c b/src/WINNT/netidmgr_plugin/afsfuncs.c index 8b807329b..471ed98f2 100644 --- a/src/WINNT/netidmgr_plugin/afsfuncs.c +++ b/src/WINNT/netidmgr_plugin/afsfuncs.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005,2006 Secure Endpoints Inc. + * Copyright (c) 2005,2006,2007 Secure Endpoints Inc. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -900,6 +900,7 @@ afs_klog(khm_handle identity, if (r) { _reportf(L"Code %d while getting credentials", r); + k5creds = NULL; goto end_krb5; }