]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Add debug messages to HTTP error/warning handling.
authorVictor Julien <victor@inliniac.net>
Fri, 10 Feb 2012 13:29:16 +0000 (14:29 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 25 May 2012 12:55:53 +0000 (14:55 +0200)
src/app-layer-htp.c

index bac04c49e025ce6e6f93ae7f9229dde9d1b46629..5ec7f0fed9ec6b9d139952a45f86875c882bb07b 100644 (file)
@@ -452,6 +452,7 @@ struct {
  *  \retval id the id or 0 in case of not found
  */
 static int HTPHandleWarningGetId(const char *msg) {
+    SCLogDebug("received warning \"%s\"", msg);
     size_t idx;
     for (idx = 0; idx < HTP_WARNING_MAX; idx++) {
         if (strncmp(htp_warnings[idx].msg, msg,
@@ -474,6 +475,8 @@ static int HTPHandleWarningGetId(const char *msg) {
  *  \retval id the id or 0 in case of not found
  */
 static int HTPHandleErrorGetId(const char *msg) {
+    SCLogDebug("received error \"%s\"", msg);
+
     size_t idx;
     for (idx = 0; idx < HTP_ERROR_MAX; idx++) {
         if (strncmp(htp_errors[idx].msg, msg,