set the length after initializing string.
rd_req.c (krb5_rd_req): If a new auth_context is created
and then there is an error, make sure return pointer is not
looking at freed memory.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6981
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Oct 23 11:09:56 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * rd_req_dec.c (krb5_rd_req_decoded): For heirarchal cross-realm,
+ set the length after initializing string.
+
+ * rd_req.c (krb5_rd_req): If a new auth_context is created
+ and then there is an error, make sure return pointer is not
+ looking at freed memory.
+
+
Fri Oct 6 22:04:42 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in: Remove ##DOS!include of config/windows.in.
(void) krb5_kt_close(context, new_keytab);
cleanup_auth_context:
- if (new_auth_context && retval)
+ if (new_auth_context && retval) {
krb5_auth_con_free(context, new_auth_context);
+ *auth_context = NULL;
+ }
cleanup_request:
krb5_free_ap_req(context, request);
* and the local realm.
*/
if (trans->tr_contents.data && trans->tr_contents.data[0]) {
- lrealm.length = strlen(lrealm.data);
krb5_get_default_realm(context, &(lrealm.data));
+ lrealm.length = strlen(lrealm.data);
retval = krb5_check_transited_list(context, &(trans->tr_contents),
realm, &lrealm);
free(lrealm.data);