From: Victor Julien Date: Thu, 28 Nov 2019 10:48:19 +0000 (+0100) Subject: detect/replace: fix debug print issue X-Git-Tag: suricata-5.0.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c010f092e09042128ee21637352fd17a2e56cfbb;p=thirdparty%2Fsuricata.git detect/replace: fix debug print issue Don't print field that will likely not be 0 terminated. --- diff --git a/src/detect-replace.c b/src/detect-replace.c index 9e0425f810..d348a4b996 100644 --- a/src/detect-replace.c +++ b/src/detect-replace.c @@ -211,7 +211,7 @@ void DetectReplaceExecuteInternal(Packet *p, DetectReplaceList *replist) SCLogDebug("replace: Executing match"); while (replist) { memcpy(replist->found, replist->cd->replace, replist->cd->replace_len); - SCLogDebug("replace: injecting '%s'", replist->cd->replace); + SCLogDebug("replace: replaced data"); p->flags |= PKT_STREAM_MODIFIED; ReCalculateChecksum(p); tlist = replist;