From 4165bf89514bfaa6ebd46abd2e525ad0b97f4d6a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 9 Dec 2013 16:33:07 +0100 Subject: [PATCH] log-http: enforce hostname print limit --- src/log-httplog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }