Browse Source

Reset http request input array on error case

master
Dirk Engling 11 years ago
parent
commit
2182587414
  1. 3
      ot_http.c

3
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;
}
@ -626,4 +627,4 @@ ssize_t http_handle_request( const int64 sock, struct ot_workstruct *ws ) {
return ws->reply_size;
}
const char *g_version_http_c = "$Source: /home/cvsroot/opentracker/ot_http.c,v $: $Revision: 1.50 $\n";
const char *g_version_http_c = "$Source: /home/cvsroot/opentracker/ot_http.c,v $: $Revision: 1.51 $\n";

Loading…
Cancel
Save