]> git.ipfire.org Git - thirdparty/chrony.git/commit
socket: avoid unnecessary bind() call
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Jul 2019 09:46:39 +0000 (11:46 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Jul 2019 14:27:07 +0000 (16:27 +0200)
commit45e41b7ac1eebc6b75ba4303b0b70e6f80d6ea06
treecf58751098c106bc3b204b86f7c494b73af537f0
parent27fd7519150f36a12f6c91e59b4b3615377f0532
socket: avoid unnecessary bind() call

Don't call bind() if the specified local address of a socket has port 0
and the "any" address. It will be bound automatically on connect() or
sendmsg().
socket.c