From 91e99db6c88b4f4992405296f4eeea98ac9baeac Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Tue, 23 Jul 2019 18:47:17 +0400 Subject: [PATCH] FS-11944: [mod_sofia] Fix error: 'nh->nh_home' will always evaluate to 'true'. --- src/mod/endpoints/mod_sofia/sofia_presence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 7f71334be5..de3d360703 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4073,7 +4073,7 @@ void sofia_presence_handle_sip_i_subscribe(int status, } } - if (nh && nh->nh_home) { + if (nh) { sip_to_tag(nh->nh_home, sip->sip_to, use_to_tag); }