From a70665852c72a1b6c3f5960ce48f51b83755276d Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 23 Jan 2024 14:19:05 +0000 Subject: [PATCH] QLOG: Treat empty environment variable as default filter Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- ssl/quic/qlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/quic/qlog.c b/ssl/quic/qlog.c index 82da15f5d12..b0cb68bdb03 100644 --- a/ssl/quic/qlog.c +++ b/ssl/quic/qlog.c @@ -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)) -- 2.47.2