]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix getsockname() call in Windows localaddr 1418/head
authorRull Deef <deeroll666@gmail.com>
Thu, 27 Mar 2025 07:54:46 +0000 (10:54 +0300)
committerGreg Hudson <ghudson@mit.edu>
Tue, 8 Apr 2025 19:29:29 +0000 (15:29 -0400)
commite3335375d7ac4e240a8a26a238a3d2a964c9baab
tree6cc3cbc091c0729502b4f5986444c3ff915e747c
parent796cb6674dd69c59cb70dde55e8eb1d0f042edd2
Fix getsockname() call in Windows localaddr

When querying local IP addresses, local_addr_fallback_kludge() is
called on Windows if gethostname() or gethostbyname() fails.  This
function's call to getsockname() erroneously passes a small integer as
the third argument instead of a pointer, likely causing a process
crash.  This bug has been present since 1.1, but is rarely encountered
due to the rarity of requests for addressful tickets.  Fix it.

[ghudson@mit.edu: rewrote commit message]

ticket: 9171 (new)
src/lib/krb5/os/localaddr.c