]> jfr.im git - irc/quakenet/newserv.git/commitdiff
deref the node
authorPaul <redacted>
Sat, 21 Feb 2009 15:52:23 +0000 (15:52 +0000)
committerPaul <redacted>
Sat, 21 Feb 2009 15:52:23 +0000 (15:52 +0000)
proxyscan/proxyscan.c

index 03b74e06bed8bbfdef521c8f5907a8c19a47df9f..803e23cfb8bf92377f15d93591e307f876aa5274 100644 (file)
@@ -476,6 +476,7 @@ void startscan(patricia_node_t *node, int type, int port, int class) {
   sp->state=SSTATE_CONNECTING;
   if (sp->fd<0) {
     /* Couldn't set up the socket? */
+    derefnode(iptree,sp->node);
     freescan(sp);
     return;
   }