Fix buffer length calculation in modutil_count_signal_packets
The optimization of the buffer iteration did not decrement the total buffer length.
This commit is contained in:

committed by
Johan Wikman

parent
e09ae2df20
commit
05e057a703
@ -695,6 +695,7 @@ int modutil_count_signal_packets(GWBUF *reply, int n_found, bool* more_out, modu
|
|||||||
|
|
||||||
if (offset >= GWBUF_LENGTH(reply) && reply->next)
|
if (offset >= GWBUF_LENGTH(reply) && reply->next)
|
||||||
{
|
{
|
||||||
|
len -= GWBUF_LENGTH(reply);
|
||||||
offset -= GWBUF_LENGTH(reply);
|
offset -= GWBUF_LENGTH(reply);
|
||||||
reply = reply->next;
|
reply = reply->next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user