]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix bug in T, when a datbase had it's last item removed and the bot rehashed the...
authorChris Porter <redacted>
Sat, 5 Apr 2008 15:48:40 +0000 (15:48 +0000)
committerChris Porter <redacted>
Sat, 5 Apr 2008 15:48:40 +0000 (15:48 +0000)
trojanscan/trojanscan.c

index d237c83b81c0f72263da6fba71d4992990e01ab5..597643db621d5457295eed337e27df74738d6282 100644 (file)
@@ -372,7 +372,9 @@ void trojanscan_free_database(void) {
   trojanscan_database.total_channels = 0;
   trojanscan_database.total_phrases = 0;
   trojanscan_database.total_worms = 0;
-  
+  trojanscan_database.channels = NULL;
+  trojanscan_database.phrases = NULL;
+  trojanscan_database.worms = NULL;  
 }
 
 char *trojanscan_sanitise(char *input) {