diff options
| -rw-r--r-- | opentracker.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index bcc075c..0ae98e6 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -183,6 +183,11 @@ static void handle_read(const int64 sock, struct ot_workstruct *ws) { | |||
| 183 | if (byte_count == -1) | 183 | if (byte_count == -1) |
| 184 | return; | 184 | return; |
| 185 | 185 | ||
| 186 | ws->request = NULL; | ||
| 187 | ws->request_size = 0; | ||
| 188 | ws->header_size = 0; | ||
| 189 | ws->keep_alive = 0; | ||
| 190 | |||
| 186 | /* If we get the whole request in one packet, handle it without copying */ | 191 | /* If we get the whole request in one packet, handle it without copying */ |
| 187 | if (!array_start(&cookie->request)) { | 192 | if (!array_start(&cookie->request)) { |
| 188 | if ((ws->header_size = header_complete(ws->inbuf, byte_count))) { | 193 | if ((ws->header_size = header_complete(ws->inbuf, byte_count))) { |
