mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-04 07:07:55 +00:00
CID:1025849 Dereference before null check
This commit is contained in:
parent
a997331577
commit
b10c865c25
@ -657,11 +657,7 @@ SWITCH_STANDARD_APP(cidlookup_app_function)
|
|||||||
switch_bool_t skipurl = SWITCH_FALSE;
|
switch_bool_t skipurl = SWITCH_FALSE;
|
||||||
switch_bool_t skipcitystate = SWITCH_FALSE;
|
switch_bool_t skipcitystate = SWITCH_FALSE;
|
||||||
|
|
||||||
if (session) {
|
pool = switch_core_session_get_pool(session);
|
||||||
pool = switch_core_session_get_pool(session);
|
|
||||||
} else {
|
|
||||||
switch_core_new_memory_pool(&pool);
|
|
||||||
}
|
|
||||||
switch_event_create(&event, SWITCH_EVENT_MESSAGE);
|
switch_event_create(&event, SWITCH_EVENT_MESSAGE);
|
||||||
|
|
||||||
if (!(mydata = switch_core_session_strdup(session, data))) {
|
if (!(mydata = switch_core_session_strdup(session, data))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user