1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-13 08:20:06 +00:00

handle -1 length reads properly

This commit is contained in:
Dirk Engling 2024-03-07 04:09:42 +01:00
parent 110868ec4e
commit 4baec2592c

View File

@ -177,6 +177,9 @@ static void handle_read( const int64 sock, struct ot_workstruct *ws ) {
return;
}
if( byte_count == -1)
return;
/* If we get the whole request in one packet, handle it without copying */
if( !array_start( &cookie->request ) ) {
if( ( ws->header_size = header_complete( ws->inbuf, byte_count ) ) ) {