]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update ftp parser protocol detection to use lowercase patterns. 600/head
authorAnoop Saldanha <anoopsaldanha@gmail.com>
Mon, 21 Oct 2013 04:22:55 +0000 (09:52 +0530)
committerAnoop Saldanha <anoopsaldanha@gmail.com>
Mon, 21 Oct 2013 04:22:55 +0000 (09:52 +0530)
src/app-layer-ftp.c

index 6ec092699fc44f29ccf39bf53fafa168583efdf1..099a8095a60f4065cc481cb5e40636a00ea43854 100644 (file)
@@ -267,9 +267,9 @@ void RegisterFTPParsers(void) {
 
     /** FTP */
     if (AppLayerProtoDetectionEnabled(proto_name)) {
-        AlpProtoAdd(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "USER ", 5, 0, STREAM_TOSERVER);
-        AlpProtoAdd(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "PASS ", 5, 0, STREAM_TOSERVER);
-        AlpProtoAdd(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "PORT ", 5, 0, STREAM_TOSERVER);
+        AlpProtoAddCI(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "USER ", 5, 0, STREAM_TOSERVER);
+        AlpProtoAddCI(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "PASS ", 5, 0, STREAM_TOSERVER);
+        AlpProtoAddCI(&alp_proto_ctx, proto_name, IPPROTO_TCP, ALPROTO_FTP, "PORT ", 5, 0, STREAM_TOSERVER);
         AppLayerRegisterParserAcceptableDataDirection(ALPROTO_FTP, STREAM_TOSERVER | STREAM_TOCLIENT);
     }