check for null before freeing, cid#33
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24148 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -440,7 +440,8 @@ heim_ntlm_decode_type1(const struct ntlm_buf *buf, struct ntlm_type1 *data)
|
||||
CHECK(ret_string(in, 0, &hostname, &data->hostname), 0);
|
||||
|
||||
out:
|
||||
krb5_storage_free(in);
|
||||
if (in)
|
||||
krb5_storage_free(in);
|
||||
if (ret)
|
||||
heim_ntlm_free_type1(data);
|
||||
|
||||
|
Reference in New Issue
Block a user