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
pull/1870/head
Richard Fuchs 1 year ago
parent 70d7ebfd64
commit 59ac21ceb0

@ -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;

Loading…
Cancel
Save