diff options
author | erdgeist <> | 2010-08-09 14:22:12 +0000 |
---|---|---|
committer | erdgeist <> | 2010-08-09 14:22:12 +0000 |
commit | 730d4bb6ae908f06ab57ec9a5fbc5330415868fe (patch) | |
tree | ca84e8da8a0a28507ce3374bbfa94b30bca0ddb2 /ot_http.c | |
parent | a75c8241874ed3e736bce2b7d7283b830d6266cd (diff) |
Reset http request input array on error case
Diffstat (limited to 'ot_http.c')
-rw-r--r-- | ot_http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -69,6 +69,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) { | |||
69 | tai6464 t; | 69 | tai6464 t; |
70 | 70 | ||
71 | if( !( outbuf = malloc( ws->reply_size - written_size ) ) ) { | 71 | if( !( outbuf = malloc( ws->reply_size - written_size ) ) ) { |
72 | array_reset( &cookie->request ); | ||
72 | free(cookie); io_close( sock ); | 73 | free(cookie); io_close( sock ); |
73 | return; | 74 | return; |
74 | } | 75 | } |