diff options
author | Erik Faye-Lund <kusmabite@googlemail.com> | 2010-01-09 15:13:28 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-09 23:43:49 -0800 |
commit | 15515b73716a6ead5a5a348a7d04cc7d73c74bff (patch) | |
tree | 0690239ef2fc030846cbe77ea85ae369f370c200 /t/t4127-apply-same-fn.sh | |
parent | help: fix configured help format taking over command line one (diff) | |
download | tgif-15515b73716a6ead5a5a348a7d04cc7d73c74bff.tar.xz |
daemon: consider only address in kill_some_child()
kill_some_child() compares the entire sockaddr_storage
structure (with the pad-bits zeroed out) when trying to
find out if connections originate from the same host.
However, sockaddr_storage contains the port-number for
the connection (which varies between connections), so
the comparison always fails.
Change the code so we only consider the host-address,
by introducing the addrcmp()-function that inspects
the address family and compare as appropriate.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4127-apply-same-fn.sh')
0 files changed, 0 insertions, 0 deletions