Sfoglia il codice sorgente

* Fix crash in got324 [ircfuzz]

Bryan Drewery 16 anni fa
parent
commit
bb5466f48b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/mod/irc.mod/chan.c

+ 3 - 0
src/mod/irc.mod/chan.c

@@ -1704,6 +1704,9 @@ static int got324(char *from, char *msg)
     return 0;
   }
 
+  // Sanity check, there may not be a mode returned if the server is sending bad data.
+  if (!msg[0]) return 0;
+
   int i = 1;
   bool ok = 0;
   char *p = NULL, *q = NULL;