src/nhttpd/yhttpd_core/ywebserver.cpp fix sanitize

This commit is contained in:
Jacek Jendrzej
2015-08-05 18:42:42 +02:00
parent 29aa47aef0
commit f4d35a34c9

View File

@@ -497,13 +497,16 @@ void *WebThread(void *args) {
log_level_printf(2,"FD SHOULD CLOSE sock:%d!!!\n",con->sock->get_socket()); log_level_printf(2,"FD SHOULD CLOSE sock:%d!!!\n",con->sock->get_socket());
else else
ws->addSocketToMasterSet(con->sock->get_socket()); // add to master set ws->addSocketToMasterSet(con->sock->get_socket()); // add to master set
#else
delete newConn->ySock;
#endif #endif
if (!con->keep_alive) if (!con->keep_alive)
con->sock->isValid = false; con->sock->isValid = false;
con->sock->handling = false; // socket can be handled by webserver main loop (select) again con->sock->handling = false; // socket can be handled by webserver main loop (select) again
#ifndef Y_CONFIG_FEATURE_KEEP_ALIVE
delete newConn->ySock;
newConn->ySock = NULL;
#endif
// (4) end thread // (4) end thread
delete con; delete con;
int thread_number = newConn->thread_number; int thread_number = newConn->thread_number;