[mod_sofia] Verify that replaces header params exist
This commit is contained in:
parent
ab9e9680a6
commit
00113c480d
|
@ -11246,7 +11246,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
|||
if (rp_common->h_class->hc_params) {
|
||||
int i, n;
|
||||
msg_param_t const *params = * (msg_param_t const **) ((char *)rp_common + rp_common->h_class->hc_params);
|
||||
for (i = 0; params[i]; i++) {
|
||||
for (i = 0; params && params[i]; i++) {
|
||||
msg_param_t param = params[i];
|
||||
if (strchr(param, '=')) {
|
||||
n = strcspn(param, "=");
|
||||
|
|
Loading…
Reference in New Issue