Correct mistake in dcb_read; use larger integer to accomodate three byte length in modutil.
This commit is contained in:

committed by
Martin Brampton

parent
56620bfcf7
commit
4a0925f33d
@ -831,7 +831,7 @@ int dcb_read(
|
||||
dcb->last_read = hkheartbeat;
|
||||
|
||||
bufsize = MIN(bytesavailable, MAX_BUFFER_SIZE);
|
||||
if (maxbytes) bufsize = MIN(bufsize, maxbytes);
|
||||
if (maxbytes) bufsize = MIN(bufsize, maxbytes-nreadtotal);
|
||||
|
||||
if ((buffer = gwbuf_alloc(bufsize)) == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user