From 59ac21ceb06c4a8f6d732395c8d642c18b545a33 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 3 Oct 2024 11:18:54 -0400 Subject: [PATCH] MT#55283 fix possible null dereference `local_ep` can end up as NULL. Don't try to send to Homer without it. Change-Id: Ie4055034f60749f454feeb674cc080c8089ac913 Warned-by: Coverity --- daemon/control_ng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/control_ng.c b/daemon/control_ng.c index 1257edb75..90dbbaf83 100644 --- a/daemon/control_ng.c +++ b/daemon/control_ng.c @@ -552,7 +552,7 @@ static void homer_fill_values(ng_ctx *hctx, str *callid, int command) { } static void homer_trace_msg_in(ng_ctx *hctx, str *data) { - if (hctx) { + if (hctx && hctx->local_ep) { hctx->should_trace = should_trace_msg(hctx->command); if (hctx->should_trace) { struct timeval tv;