From: Andrey Volk Date: Tue, 23 Jul 2019 14:47:17 +0000 (+0400) Subject: FS-11944: [mod_sofia] Fix error: 'nh->nh_home' will always evaluate to 'true'. X-Git-Tag: v1.10.0~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e99db6c88b4f4992405296f4eeea98ac9baeac;p=thirdparty%2Ffreeswitch.git FS-11944: [mod_sofia] Fix error: 'nh->nh_home' will always evaluate to 'true'. --- 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); }