]> git.ipfire.org Git - thirdparty/krb5.git/commit
Kill TCP connections if getsockname fails
authorAndreas Schneider <asn@samba.org>
Tue, 30 May 2017 07:50:10 +0000 (09:50 +0200)
committerGreg Hudson <ghudson@mit.edu>
Mon, 5 Jun 2017 15:56:34 +0000 (11:56 -0400)
commit342d51e9e3ee0e35addf6a64d177730d980755d7
tree64f37f24822f9d2b14f8112ead1a7e6f928f9ba3
parent7e41d97e8dd39833503b74d34e9f0c905a2d4cf2
Kill TCP connections if getsockname fails

In net-server.c:process_tcp_connection_read(), we don't expect
getsockname() to fail under ordinary circumstances, so instead of
passing a null local address to dispatch(), just error out.  Simplify
schpw.c:dispatch() by assuming a non-null local_saddr.

[ghudson@mit.edu: simplified schpw.c:dispatch(); rewrote commit
message]
src/kadmin/server/schpw.c
src/lib/apputils/net-server.c