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:
Markus Mäkelä
2017-10-10 15:11:28 +03:00
committed by Johan Wikman
parent e09ae2df20
commit 05e057a703

View File

@ -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)
{
len -= GWBUF_LENGTH(reply);
offset -= GWBUF_LENGTH(reply);
reply = reply->next;
}