From 730d4bb6ae908f06ab57ec9a5fbc5330415868fe Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 9 Aug 2010 14:22:12 +0000 Subject: Reset http request input array on error case --- ot_http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ot_http.c') 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 ) { tai6464 t; if( !( outbuf = malloc( ws->reply_size - written_size ) ) ) { + array_reset( &cookie->request ); free(cookie); io_close( sock ); return; } -- cgit v1.2.3