Skip to content

Commit

Permalink
OSSL_HTTP_REQ_CTX_nbio(): fix call of OSSL_TRACE_STRING() only if ena…
Browse files Browse the repository at this point in the history
…bled
  • Loading branch information
DDvO committed Oct 9, 2024
1 parent 2723310 commit ad3690c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crypto/http/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,9 @@ int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx)
}
if (OSSL_TRACE_ENABLED(HTTP) && rctx->state == OHS_WRITE_HDR1)
OSSL_TRACE(HTTP, "Sending request: [\n");
OSSL_TRACE_STRING(HTTP, rctx->state != OHS_WRITE_REQ || rctx->text,
rctx->state != OHS_WRITE_REQ, rctx->pos, sz);
if (OSSL_TRACE_ENABLED(HTTP))
OSSL_TRACE_STRING(HTTP, rctx->state != OHS_WRITE_REQ || rctx->text,
rctx->state != OHS_WRITE_REQ, rctx->pos, sz);
if (rctx->state == OHS_WRITE_HDR1)
rctx->state = OHS_WRITE_HDR;
rctx->pos += sz;
Expand Down

0 comments on commit ad3690c

Please sign in to comment.