]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3244 --resolve next time also attach a backtrace
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 13 Apr 2011 21:15:15 +0000 (16:15 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 13 Apr 2011 21:15:15 +0000 (16:15 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 2bf27d5ba829cc16848fa1684ea026c10cdcc937..cf25aae369a00eacd8c5d752d35fbf7d78f5835f 100644 (file)
@@ -7047,8 +7047,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
                }
 
                if (!gateway && gw_param_name) {
-                       gateway = sofia_reg_find_gateway(gw_param_name);
-                       extension = gateway->real_extension;
+                       if ((gateway = sofia_reg_find_gateway(gw_param_name))) {
+                               extension = gateway->real_extension;
+                       }
                }
 
                if (gateway) {