From 159b653ffb0fe68b2f601d19d86fa00561db3f54 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Tue, 27 Nov 2007 17:31:39 +0000 Subject: [PATCH] DEVEL15-windows-nim-afscred-double-free-20071127 fix a double free on error condition (cherry picked from commit 4172d60820fdf3375091b0a451e8d25809019d8d) --- src/WINNT/netidmgr_plugin/afsfuncs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5