Skip to content

Commit

Permalink
QLOG: Treat empty environment variable as default filter
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from #22037)
  • Loading branch information
hlandau committed Feb 2, 2024
1 parent de60b12 commit a706658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/quic/qlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ QLOG *ossl_qlog_new_from_env(const QLOG_TRACE_INFO *info)
if (!ossl_qlog_set_sink_filename(qlog, filename))
goto err;

if (qfilter == NULL)
if (qfilter == NULL || qfilter[0] == '\0')
qfilter = "*";

if (!ossl_qlog_set_filter(qlog, qfilter))
Expand Down

0 comments on commit a706658

Please sign in to comment.