commit) where scratch.data could be indirected through even if it
wasn't allocated successfully.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22309
dc483132-0cff-0310-8789-
dd5450dbe970
enc = NULL;
clean_scratch:
- memset(scratch.data, 0, scratch.length);
+ if (scratch.data)
+ memset(scratch.data, 0, scratch.length);
+ free(scratch.data);
krb5_free_ap_rep(context, reply);
krb5_free_ap_rep_enc_part(context, enc);
- free(scratch.data);
return retval;
}