Browse Source

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
commit
59ac21ceb0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/control_ng.c

+ 1
- 1
daemon/control_ng.c View File

@ -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) { 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); hctx->should_trace = should_trace_msg(hctx->command);
if (hctx->should_trace) { if (hctx->should_trace) {
struct timeval tv; struct timeval tv;


Loading…
Cancel
Save