From 0aa582523a698d6caf4bbc39208d96879c357641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 Dec 2008 05:08:06 +0000 Subject: [PATCH] check for null before freeing, cid#32 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24149 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/ntlm/ntlm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ntlm/ntlm.c b/lib/ntlm/ntlm.c index dbbbddd1f..b06864a84 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -590,7 +590,8 @@ heim_ntlm_decode_type2(const struct ntlm_buf *buf, struct ntlm_type2 *type2) ret = 0; out: - krb5_storage_free(in); + if (in) + krb5_storage_free(in); if (ret) heim_ntlm_free_type2(type2);