aboutsummaryrefslogtreecommitdiff
path: root/reachable.h
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@googlemail.com>2010-01-09 15:13:28 +0100
committerJunio C Hamano <gitster@pobox.com>2010-01-09 23:43:49 -0800
commit15515b73716a6ead5a5a348a7d04cc7d73c74bff (patch)
tree0690239ef2fc030846cbe77ea85ae369f370c200 /reachable.h
parent3caa82396ca8a78da05f7759570444e9a666b2e8 (diff)
downloadgit-15515b73716a6ead5a5a348a7d04cc7d73c74bff.tar.gz
git-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 'reachable.h')
0 files changed, 0 insertions, 0 deletions