used; this prevents freeing an unallocated keyblock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10115
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Jul 15 01:55:56 1997 Tom Yu <tlyu@mit.edu>
+
+ * kdc_preauth.c (get_sam_edata): Don't goto cleanup if SAM is not
+ used; this prevents freeing an unallocated keyblock.
+
Thu May 29 21:08:24 1997 Theodore Y. Ts'o <tytso@mit.edu>
* do_as_req.c (process_as_req), do_tgs_req (process_tgs_req): Use
}
/* now we can use encrypting_key... */
}
- } else {
- /* SAM is not an option - so don't return as hint */
- retval = KRB5_PREAUTH_BAD_TYPE;
- goto cleanup;
- }
+ } else
+ /* SAM is not an option - so don't return as hint */
+ return KRB5_PREAUTH_BAD_TYPE;
krb5_princ_component(kdc_context,newp,probeslot)->data = 0;
krb5_princ_component(kdc_context,newp,probeslot)->length = 0;