From 167597cfb0841cf7a6c2ad1fcc8dc6511d0cc03d Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Mon, 21 Oct 2013 09:52:55 +0530 Subject: [PATCH] Update ftp parser protocol detection to use lowercase patterns. --- src/app-layer-ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index 6ec092699f..099a8095a6 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -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); } -- 2.47.2