From: Victor Julien Date: Fri, 10 Feb 2012 13:29:16 +0000 (+0100) Subject: Add debug messages to HTTP error/warning handling. X-Git-Tag: suricata-1.3beta2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00948c86d508fc701c1e1a3b2bca073ffad50d1b;p=thirdparty%2Fsuricata.git Add debug messages to HTTP error/warning handling. --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index bac04c49e0..5ec7f0fed9 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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,