krb5_decrypt_tkt_part() fails. (krb5-libs/855)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12720
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-10-04 Ezra Peisach <epeisach@mit.edu>
+
+ * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Fix memory leak if
+ krb5_decrypt_tkt_part() fails. (krb5-libs/855)
+
2000-10-03 Ezra Peisach <epeisach@mit.edu>
* copy_addrs.c (krb5_copy_addresses): Cleanup unsigned vs signed
enctype, &ktent)))
return retval;
- if ((retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket)))
- return retval;
+ retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket);
+ /* If error, we will return after freeing memory */
(void) krb5_kt_free_entry(context, &ktent);
return retval;