summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-03-07 04:10:28 +0100
committerDirk Engling <erdgeist@erdgeist.org>2024-03-07 04:10:28 +0100
commit384799b5b3042a7cd61160d19ce3cb249f60fe82 (patch)
treeee3054c4d0455fb24a3c53b8c8b4bfe801ba3344
parent9c98e1e775c48684442fe97ca93bfa71b295d81e (diff)
parent4baec2592c243b5f881598b150f9e907f7aa4069 (diff)
Merge branch 'master' into erdgeist-fix-top10-stats
-rw-r--r--opentracker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c
index b6d2bb9..2ca9e06 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -177,6 +177,9 @@ static void handle_read( const int64 sock, struct ot_workstruct *ws ) {
177 return; 177 return;
178 } 178 }
179 179
180 if( byte_count == -1)
181 return;
182
180 /* If we get the whole request in one packet, handle it without copying */ 183 /* If we get the whole request in one packet, handle it without copying */
181 if( !array_start( &cookie->request ) ) { 184 if( !array_start( &cookie->request ) ) {
182 if( ( ws->header_size = header_complete( ws->inbuf, byte_count ) ) ) { 185 if( ( ws->header_size = header_complete( ws->inbuf, byte_count ) ) ) {