From: Philippe Antoine Date: Wed, 20 Oct 2021 08:56:44 +0000 (+0200) Subject: tftp: StringToAppProto case X-Git-Tag: suricata-7.0.0-beta1~1287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6506%2Fhead;p=thirdparty%2Fsuricata.git tftp: StringToAppProto case So, fuzz_applayerparserparse_tftp will fuzz tftp --- diff --git a/src/app-layer-protos.c b/src/app-layer-protos.c index cd5df04faf..5bc0bbc51a 100644 --- a/src/app-layer-protos.c +++ b/src/app-layer-protos.c @@ -148,6 +148,8 @@ AppProto StringToAppProto(const char *proto_name) if (strcmp(proto_name,"ftp")==0) return ALPROTO_FTP; if (strcmp(proto_name, "ftp-data") == 0) return ALPROTO_FTPDATA; + if (strcmp(proto_name, "tftp") == 0) + return ALPROTO_TFTP; if (strcmp(proto_name,"smtp")==0) return ALPROTO_SMTP; if (strcmp(proto_name,"tls")==0) return ALPROTO_TLS; if (strcmp(proto_name,"ssh")==0) return ALPROTO_SSH;