mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-12 00:16:58 +00:00
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.
This commit is contained in:
parent
e4edc6b628
commit
22fc3203db
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user