diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2024-10-11 12:45:13 +0200 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2024-10-18 15:43:06 -0400 |
commit | 038793c3083f44c4fb62626c12f80c80147029cf (patch) | |
tree | a8299e0b0bb45bcdeda45f26316f1bbe7fbcec9d /src/lib/rpc/getrpcent.c | |
parent | f14651a9fe94aca2bc2569848d931e4ba7a318a7 (diff) | |
download | krb5-master.zip krb5-master.tar.gz krb5-master.tar.bz2 |
In kpasswd_sendto_msg_callback(), if getsockname() does not reveal the
local address, a copy of the first local address's contents is made
and never freed. Instead of making an allocated copy of the address
contents, make a shallow copy of the whole address. Delay freeing the
address array until the end of the function so that alias pointer made
by the shallow copy remains valid.
[ghudson@mit.edu: further simplified code; rewrote commit message]
Diffstat (limited to 'src/lib/rpc/getrpcent.c')
0 files changed, 0 insertions, 0 deletions