From: Anoop Saldanha Date: Mon, 21 Oct 2013 04:22:55 +0000 (+0530) Subject: Update ftp parser protocol detection to use lowercase patterns. X-Git-Tag: suricata-2.0beta2~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F600%2Fhead;p=thirdparty%2Fsuricata.git Update ftp parser protocol detection to use lowercase patterns. --- 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); }