From: Frédéric Lécaille Date: Tue, 19 Jul 2016 12:04:36 +0000 (+0200) Subject: BUG/MINOR: peers: Fix peers data decoding issue X-Git-Tag: v1.7-dev4~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22fc3203db3cfab18674578e3245e203291aa53a;p=thirdparty%2Fhaproxy.git BUG/MINOR: peers: Fix peers data decoding issue This error led to truncated data after decoding upon receipt. It's specific to peers v2 and needs to be backported to 1.6. --- diff --git a/src/peers.c b/src/peers.c index bf22b93442..a8066c53ee 100644 --- a/src/peers.c +++ b/src/peers.c @@ -225,7 +225,7 @@ uint64_t intdecode(char **str, char *end) { } i += (uint64_t)msg[idx] << (4 + 7*(idx-1)); } - while (msg[idx] > 128); + while (msg[idx] >= 128); *str = (char *)&msg[idx+1]; return i; }