Hopefully fix the problems with Double Free Errors

This commit is contained in:
Fish 2007-07-25 05:38:54 +00:00
parent ec0b7826a1
commit 07040d3e8e
2 changed files with 1 additions and 3 deletions

View file

@ -1,6 +1,7 @@
Open Proxy Scanning Bot Module for NeoStats Changelog.
==============================================================================
3.0.b1 - Mark (M) & Fish (F) & DeadNotBuried (D)
- Timeouts should not call DelSock (In fact nothing should!) (F)
- fix crash on too many file descriptors open by deleting sockets correctly (D)
- Increase max number of ports to scan (D)
- change LIST command to LISTPORTS as LIST can't have a access level changed

View file

@ -256,9 +256,6 @@ static int proxy_read( void *data, void *recv, int size )
list_delete(si->connections, connode);
lnode_destroy(connode);
if (si->reqclient) irc_prefmsg(opsb_bot, si->reqclient, "Connection on %s (%s:%d) for Protocol %s Closed", si->who, si->lookup, ci->port, type_of_proxy(ci->type));
/*timeout needs the socket deleted */
if( size == -2 )
DelSock(ci->sock);
ns_free(ci);
}
if (list_count(si->connections) == 0) {