summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2010-08-09 14:22:12 +0000
committererdgeist <>2010-08-09 14:22:12 +0000
commit730d4bb6ae908f06ab57ec9a5fbc5330415868fe (patch)
treeca84e8da8a0a28507ce3374bbfa94b30bca0ddb2
parenta75c8241874ed3e736bce2b7d7283b830d6266cd (diff)
Reset http request input array on error case
-rw-r--r--ot_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ot_http.c b/ot_http.c
index 567cba3..6493e59 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -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 }