]> jfr.im git - irc/quakenet/newserv.git/blobdiff - proxyscan/proxyscanqueue.c
Merge chanserv-live into default.
[irc/quakenet/newserv.git] / proxyscan / proxyscanqueue.c
index 91febc841bcc697f3153df849ee2ee82c899f977..fae99c5e1cdf7dfd9d3450a66e0a6e64e334424e 100644 (file)
@@ -6,6 +6,7 @@
 #include "proxyscan.h"
 #include "../irc/irc.h"
 #include "../core/error.h"
+#include <assert.h>
 
 pendingscan *ps_normalqueue=NULL;
 pendingscan *ps_prioqueue=NULL;
@@ -25,6 +26,11 @@ void queuescan(patricia_node_t *node, short scantype, unsigned short port, char
    * b) newnick handler - which ignores clean hosts, only scans new hosts or dirty hosts
    * c) adding a new scan type (rare) 
    */
+
+  /* we should never have an internal node */
+  assert(node->prefix);
+  /* reference the node - we either start a or queue a single scan */
+  patricia_ref_prefix(node->prefix);
   
   /* If there are scans spare, just start it immediately.. 
    * provided we're not supposed to wait */