From: Hugo Landau Date: Tue, 23 Jan 2024 14:19:05 +0000 (+0000) Subject: QLOG: Treat empty environment variable as default filter X-Git-Tag: openssl-3.3.0-alpha1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a70665852c72a1b6c3f5960ce48f51b83755276d;p=thirdparty%2Fopenssl.git 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) --- 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))