From: Tom Peters (thopeter) Date: Tue, 23 May 2017 13:20:21 +0000 (-0400) Subject: Merge pull request #905 in SNORT/snort3 from ipproto_option_test to master X-Git-Tag: 3.0.0-239~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f02832e12e05b59df841118542cfa2d384ff5be6;p=thirdparty%2Fsnort3.git Merge pull request #905 in SNORT/snort3 from ipproto_option_test to master Squashed commit of the following: commit 94419df41bc540065a5a2dc12b1f75d5753ca74a Author: Steven Baigal Date: Fri May 19 14:29:28 2017 -0400 removed unreachable code --- diff --git a/src/ips_options/ips_ip_proto.cc b/src/ips_options/ips_ip_proto.cc index fdee65d7b..7be2ddc57 100644 --- a/src/ips_options/ips_ip_proto.cc +++ b/src/ips_options/ips_ip_proto.cc @@ -142,11 +142,6 @@ int IpProtoOption::eval(Cursor&, Packet* p) return DETECTION_OPTION_MATCH; break; - - default: - ErrorMessage("%s(%d) Invalid comparison flag.\n", - __FILE__, __LINE__); - break; } /* if the test isn't successful, this function *must* return 0 */