mirror of
https://erdgeist.org/gitweb/opentracker
synced 2024-05-10 07:54:50 +00:00
Reset http request input array on error case
This commit is contained in:
@ -69,6 +69,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) {
|
|||||||
tai6464 t;
|
tai6464 t;
|
||||||
|
|
||||||
if( !( outbuf = malloc( ws->reply_size - written_size ) ) ) {
|
if( !( outbuf = malloc( ws->reply_size - written_size ) ) ) {
|
||||||
|
array_reset( &cookie->request );
|
||||||
free(cookie); io_close( sock );
|
free(cookie); io_close( sock );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user