[process_bulk] walk the buffer

This commit is contained in:
nick black 2021-09-16 02:15:11 -04:00
parent 78eeaf55ea
commit 24c194df1b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1629,6 +1629,8 @@ process_bulk(inputctx* ictx, unsigned char* buf, int* bufused){
if(consumed <= 0){
break;
}
*bufused -= consumed;
offset += consumed;
}
// move any leftovers to the front
if(*bufused){