]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: for apache and apache_2_2 personalities, that are no longer supported by libhtp...
authorVictor Julien <victor@inliniac.net>
Mon, 7 Oct 2013 13:08:58 +0000 (15:08 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Oct 2013 13:08:58 +0000 (15:08 +0200)
src/app-layer-htp.c

index b61b7a0516b89362fcf0de492e4cb36ada5b9424..93adcef1875f12973b8d418b8f498f62a08118ed 100644 (file)
@@ -212,12 +212,17 @@ static int HTPLookupPersonality(const char *str)
     IF_HTP_PERSONALITY_NUM(IIS_7_0);
     IF_HTP_PERSONALITY_NUM(IIS_7_5);
     IF_HTP_PERSONALITY_NUM(APACHE_2);
-    if ((strcasecmp("TOMCAT_6_0", str) == 0) ||
-        (strcasecmp("APACHE", str) == 0) ||
-        (strcasecmp("APACHE_2_2", str) == 0)) {
+    if (strcasecmp("TOMCAT_6_0", str) == 0) {
         SCLogError(SC_WARN_OPTION_OBSOLETE, "Personality %s no "
                    "longer supported by libhtp.", str);
         return -1;
+    } else if ((strcasecmp("APACHE", str) == 0) ||
+               (strcasecmp("APACHE_2_2", str) == 0))
+    {
+        SCLogWarning(SC_WARN_OPTION_OBSOLETE, "Personality %s no "
+                   "longer supported by libhtp, failing back to "
+                   "Apache2 personality.", str);
+        return HTP_SERVER_APACHE_2;
     }
 
     return -1;