Merge pull request #334 from dragos-oancea/mod_sofia-call-info_val-never-read

[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:
Andrey Volk 2020-02-12 22:50:08 +04:00 committed by GitHub
commit 0328407ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 (channel && sip->sip_call_info) {
if (channel && sip && sip->sip_call_info) {
char *p;
if ((call_info = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_call_info))) {
if (switch_stristr("appearance", call_info)) {