check for null before freeing, cid#32

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24149 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:08:06 +00:00
parent b1f9462cfc
commit 0aa582523a

View File

@@ -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);