mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-12 10:17:32 +00:00
[mod_sofia] scan-build: Access to field 'sip_call_info' results in a dereference of a null pointer (loaded from variable 'sip')
This commit is contained in:
parent
1b66e76548
commit
d23608f0cb
@ -10077,7 +10077,7 @@ void sofia_handle_sip_i_reinvite(switch_core_session_t *session,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (profile && sofia_test_pflag(profile, PFLAG_MANAGE_SHARED_APPEARANCE)) {
|
if (profile && sofia_test_pflag(profile, PFLAG_MANAGE_SHARED_APPEARANCE)) {
|
||||||
if (channel && sip->sip_call_info) {
|
if (channel && sip && sip->sip_call_info) {
|
||||||
char *p;
|
char *p;
|
||||||
if ((call_info = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_call_info))) {
|
if ((call_info = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_call_info))) {
|
||||||
if (switch_stristr("appearance", call_info)) {
|
if (switch_stristr("appearance", call_info)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user