From: Victor Julien Date: Tue, 9 Jul 2019 11:48:16 +0000 (+0200) Subject: afl: fix afl-ftp causing FPE due to missing ippair X-Git-Tag: suricata-5.0.0-rc1~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c12252617c885a4278650ba5f9b2d183fa66afa2;p=thirdparty%2Fsuricata.git afl: fix afl-ftp causing FPE due to missing ippair --- diff --git a/src/suricata.c b/src/suricata.c index 8388668ed5..f970d82463 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1244,6 +1244,7 @@ static void ParseCommandLineAFL(const char *opt_name, char *opt_arg) } else if(strcmp(opt_name, "afl-ftp-request") == 0) { //printf("arg: //%s\n", opt_arg); + IPPairInitConfig(FLOW_QUIET); MpmTableSetup(); SpmTableSetup(); AppLayerProtoDetectSetup(); @@ -1252,6 +1253,7 @@ static void ParseCommandLineAFL(const char *opt_name, char *opt_arg) exit(AppLayerParserRequestFromFile(IPPROTO_TCP, ALPROTO_FTP, opt_arg)); } else if(strcmp(opt_name, "afl-ftp") == 0) { //printf("arg: //%s\n", opt_arg); + IPPairInitConfig(FLOW_QUIET); MpmTableSetup(); SpmTableSetup(); AppLayerProtoDetectSetup();