]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix null dereference in the "newnick" function.
authorGunnar Beutner <redacted>
Thu, 6 Feb 2014 19:39:39 +0000 (19:39 +0000)
committerGunnar Beutner <redacted>
Thu, 6 Feb 2014 19:39:39 +0000 (19:39 +0000)
newsearch/ns-newnick.c

index ec7d5acac66246275e7927b1dabd1c3f3c5f9629..8c19556d8bd63dde07b200f9fc53b1012999b889 100644 (file)
@@ -30,7 +30,7 @@ void *newnick_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   nick *np = (nick *)theinput;
   whowas *ww = (whowas *)np->next;
 
-  if (ww->type == WHOWAS_RENAME)
+  if (ww->type != WHOWAS_RENAME)
     return "";
   
   return (void *)ww->newnick->content;