From 155b1c83b56943ec66e92ea4d4dcdd710352cdf2 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 21 Feb 2022 05:29:44 +0000 Subject: [PATCH] plugins: openmetrics_export: graceful fail if unconfigured --- plugins/protocol_lws_openmetrics_export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/protocol_lws_openmetrics_export.c b/plugins/protocol_lws_openmetrics_export.c index f7fb60155..f6b1850b1 100644 --- a/plugins/protocol_lws_openmetrics_export.c +++ b/plugins/protocol_lws_openmetrics_export.c @@ -971,7 +971,7 @@ callback_lws_openmetrics_prox_client(struct lws *wsi, /* the proxy server uri */ - if (lws_pvo_get_str(in, "ws-server-uri", &cp)) { + if (lws_pvo_get_str(in, "ws-server-uri", &cp) || !cp) { lwsl_warn("%s: ws-server-uri pvo required\n", __func__); return 0;