Commit 71fb23c8 authored by Geoff Simmons's avatar Geoff Simmons

bugfix: do not attempt to quote a binary tag if no payload was found

parent 4e95320a
Pipeline #89 skipped
......@@ -800,7 +800,7 @@ void
format_SLT(const tx_t *tx, const arg_t *args, char **s, size_t *len)
{
format_slt(tx, args->tag, args->hdr_idx, args->fld, s, len);
if (VSL_tagflags[args->tag] & SLT_F_BINARY) {
if (VSL_tagflags[args->tag] & SLT_F_BINARY && *s != NULL && *len > 0) {
VSB_clear(scratch);
VSB_quote(scratch, *s, (int) *len, 0);
VSB_finish(scratch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment