X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/7eb07f5757e519a6a114ac36d1860970ca490d95..440cd7e63ac2b059ea1a467a2e4e2244faf92cb3:/proxyscan/proxyscanqueue.c diff --git a/proxyscan/proxyscanqueue.c b/proxyscan/proxyscanqueue.c index 91febc84..fae99c5e 100644 --- a/proxyscan/proxyscanqueue.c +++ b/proxyscan/proxyscanqueue.c @@ -6,6 +6,7 @@ #include "proxyscan.h" #include "../irc/irc.h" #include "../core/error.h" +#include 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 */