mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-16 13:38:44 +00:00
[mod_verto] coverity CID 1468439 (Dereference after null check)
This commit is contained in:
parent
8ce8afc843
commit
889f761df6
@ -836,7 +836,7 @@ static void set_perm(const char *str, switch_event_t **event, switch_bool_t add)
|
|||||||
switch_event_create(event, SWITCH_EVENT_REQUEST_PARAMS);
|
switch_event_create(event, SWITCH_EVENT_REQUEST_PARAMS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zstr(str)) {
|
if (!zstr(str) && event && *event) {
|
||||||
edup = strdup(str);
|
edup = strdup(str);
|
||||||
switch_assert(edup);
|
switch_assert(edup);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user