]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11944: [mod_sofia] Fix error: 'nh->nh_home' will always evaluate to 'true'.
authorAndrey Volk <andywolk@gmail.com>
Tue, 23 Jul 2019 14:47:17 +0000 (18:47 +0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 23 Jul 2019 14:47:17 +0000 (18:47 +0400)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 7f71334be58cfe625958b7ac0ffc6fe09be9c51f..de3d36070348211527f7d511a3247044bf109c07 100644 (file)
@@ -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);
                }