From: Anthony Minessale Date: Wed, 13 Apr 2011 21:15:15 +0000 (-0500) Subject: FS-3244 --resolve next time also attach a backtrace X-Git-Tag: v1.2-rc1~118^2~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b6f70708c05db037bb7240798aafb9ced630790;p=thirdparty%2Ffreeswitch.git FS-3244 --resolve next time also attach a backtrace --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 2bf27d5ba8..cf25aae369 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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) {