mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue