Skip to content

Commit

Permalink
Update tracer/src/Datadog.Trace/AppSec/WafEncoding/Encoder.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Anna <[email protected]>
  • Loading branch information
daniel-romano-DD and anna-git authored May 31, 2024
1 parent 927bf0d commit adf044f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/src/Datadog.Trace/AppSec/WafEncoding/Encoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public IEncodeResult Encode<TInstance>(TInstance? o, int remainingDepth = WafCon
// -----------------------------------
internal DdwafObjectStruct Encode<TInstance>(TInstance? o, List<IntPtr> argToFree, int remainingDepth = WafConstants.MaxContainerDepth, string? key = null, bool applySafetyLimits = true, UnmanagedMemoryPool? pool = null)
{
var context = new EncoderContext(applySafetyLimits, Pool, argToFree);
var context = new EncoderContext(applySafetyLimits, pool ?? Pool, argToFree);
return Encode(ref context, remainingDepth, key, o);
}

Expand Down

0 comments on commit adf044f

Please sign in to comment.