From e015c3606032edd2e5e3bdc4ee56ccc6e0327c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 Dec 2008 05:07:46 +0000 Subject: [PATCH] check for null before freeing, cid#34 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24147 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 21f3eefa7..9d05ab99f 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -748,7 +748,8 @@ heim_ntlm_decode_type3(const struct ntlm_buf *buf, CHECK(ret_buf(in, &sessionkey, &type3->sessionkey), 0); out: - krb5_storage_free(in); + if (in) + krb5_storage_free(in); if (ret) heim_ntlm_free_type3(type3);