]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tftp: StringToAppProto case 6506/head
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 20 Oct 2021 08:56:44 +0000 (10:56 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 21 Oct 2021 16:11:32 +0000 (18:11 +0200)
So, fuzz_applayerparserparse_tftp will fuzz tftp

src/app-layer-protos.c

index cd5df04faf49f4f66b92d8ad81779407676545bc..5bc0bbc51a641a4618ef348e0b3e24a97dfa3e35 100644 (file)
@@ -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;