forked from Mirrors/freeswitch
Merge pull request #439 from dragos-oancea/mod_rtmp-profile-nullptr-deref
[mod_rtmp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'profile') - config_profile()
This commit is contained in:
commit
21577fcdd2
@ -1565,7 +1565,7 @@ static switch_status_t config_profile(rtmp_profile_t *profile, switch_bool_t rel
|
||||
|
||||
for (x_profile = switch_xml_child(x_profiles, "profile"); x_profile; x_profile = x_profile->next) {
|
||||
const char *name = switch_xml_attr_soft(x_profile, "name");
|
||||
if (strcmp(name, profile->name)) {
|
||||
if (profile && strcmp(name, profile->name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user