mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
[mod_sofia] Verify that replaces header params exist
This commit is contained in:
@@ -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, "=");
|
||||
|
||||
Reference in New Issue
Block a user