]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix two unlikely memory leaks 1330/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 6 Mar 2024 00:53:07 +0000 (19:53 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 19 Mar 2024 02:11:31 +0000 (22:11 -0400)
commitc5f9c816107f70139de11b38aa02db2f1774ee0d
tree400f87a66e66474f4a7557c6a350405082bad78b
parent7d0d85bf99caf60c0afd4dcf91b0c4c683b983fe
Fix two unlikely memory leaks

In gss_krb5int_make_seal_token_v3(), one of the bounds checks (which
could probably never be triggered) leaks plain.data.  Fix this leak
and use current practices for cleanup throughout the function.

In xmt_rmtcallres() (unused within the tree and likely elsewhere),
store port_ptr into crp->port_ptr as soon as it is allocated;
otherwise it could leak if the subsequent xdr_u_int32() operation
fails.
src/lib/gssapi/krb5/k5sealv3.c
src/lib/rpc/pmap_rmt.c