diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a56bb7ca1..f51cc839e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6887,10 +6887,9 @@ static int update_call_counter(struct sip_pvt *fup, int event) ast_log(LOG_ERROR, "update_call_counter(%s, %d) called with no event!\n", name, event); } - if (p) { - ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "SIP/%s", p->name); - sip_unref_peer(p, "update_call_counter: sip_unref_peer from call counter"); - } + ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "SIP/%s", p->name); + sip_unref_peer(p, "update_call_counter: sip_unref_peer from call counter"); + return 0; } |