From: Victor Julien Date: Mon, 9 Dec 2013 15:33:07 +0000 (+0100) Subject: log-http: enforce hostname print limit X-Git-Tag: suricata-2.0beta2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4165bf89514bfaa6ebd46abd2e525ad0b97f4d6a;p=thirdparty%2Fsuricata.git log-http: enforce hostname print limit --- diff --git a/src/log-httplog.c b/src/log-httplog.c index 6c1f1231cf..178b511e08 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -263,7 +263,7 @@ static void LogHttpLogCustom(LogHttpLogThread *aft, htp_tx_t *tx, const struct t } PrintRawUriBuf((char *)aft->buffer->buffer, &aft->buffer->offset, aft->buffer->size, (uint8_t *)bstr_ptr(tx->request_hostname), - bstr_len(tx->request_hostname)); + datalen); } else { MemBufferWriteString(aft->buffer, LOG_HTTP_CF_NONE); }