]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-not.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-not.c
index 0387f35587c18177764434be5c4cd4a9305c7c1a..0e8f97a7733d28cc5b5e4eab20069ece25fcda86 100644 (file)
@@ -37,7 +37,11 @@ struct searchNode *not_parse(searchCtx *ctx, int argc, char **argv) {
 
   /* Our subnode needs to return a BOOL */  
   subnode=coerceNode(ctx, subnode, RETURNTYPE_BOOL);
-
+  if(!subnode) {
+    free(thenode);
+    return NULL;
+  }
+  
   thenode->localdata=(void *)subnode;
       
   return thenode;