Skip to content

Commit

Permalink
MT#55283 fix possible null dereference
Browse files Browse the repository at this point in the history
`local_ep` can end up as NULL. Don't try to send to Homer without it.

Change-Id: Ie4055034f60749f454feeb674cc080c8089ac913
Warned-by: Coverity
  • Loading branch information
rfuchs committed Oct 3, 2024
1 parent 70d7ebf commit 59ac21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/control_ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59ac21c

Please sign in to comment.