]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: fix field too long events
authorVictor Julien <victor@inliniac.net>
Tue, 1 Oct 2013 10:15:41 +0000 (12:15 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2013 05:04:36 +0000 (07:04 +0200)
src/app-layer-htp.c

index 11ed4b3bb91ca3d59343c7cbb5455f3e0874589a..7411c39dbabb4d05ce5fa632556a1a69e6c2f327 100644 (file)
@@ -416,8 +416,8 @@ struct {
     { "Unable to match response to request", HTTP_DECODER_EVENT_UNABLE_TO_MATCH_RESPONSE_TO_REQUEST},
     { "Invalid server port information in request", HTTP_DECODER_EVENT_INVALID_SERVER_PORT_IN_REQUEST},
     { "Invalid authority port", HTTP_DECODER_EVENT_INVALID_AUTHORITY_PORT},
-    { "Request field over", HTTP_DECODER_EVENT_REQUEST_FIELD_TOO_LONG},
-    { "Response field over", HTTP_DECODER_EVENT_RESPONSE_FIELD_TOO_LONG},
+    { "Request buffer over", HTTP_DECODER_EVENT_REQUEST_FIELD_TOO_LONG},
+    { "Response buffer over", HTTP_DECODER_EVENT_RESPONSE_FIELD_TOO_LONG},
 };
 
 struct {
@@ -4995,8 +4995,8 @@ libhtp:\n\
     }
     SCMutexUnlock(&f->m);
 
-    if (decoder_events->events[0] != HTTP_DECODER_EVENT_UNKNOWN_ERROR) {
-        printf("HTTP_DECODER_EVENT_UNKNOWN_ERROR not set: ");
+    if (decoder_events->events[0] != HTTP_DECODER_EVENT_REQUEST_FIELD_TOO_LONG) {
+        printf("HTTP_DECODER_EVENT_REQUEST_FIELD_TOO_LONG not set: ");
         goto end;
     }