[mod_event_socket] fix strcmp crash

This commit is contained in:
Dragos Oancea 2021-11-19 01:54:26 +02:00
parent e428be3f1a
commit 5b8e1dd88a

View File

@ -377,7 +377,7 @@ static void event_handler(switch_event_t *event)
if (!uuid || (l->session && strcmp(uuid, switch_core_session_get_uuid(l->session)))) { if (!uuid || (l->session && strcmp(uuid, switch_core_session_get_uuid(l->session)))) {
send = 0; send = 0;
} }
if (!strcmp(switch_core_session_get_uuid(l->session), switch_event_get_header_nil(event, "Job-Owner-UUID"))) { if (l->session && !strcmp(switch_core_session_get_uuid(l->session), switch_event_get_header_nil(event, "Job-Owner-UUID"))) {
send = 1; send = 1;
} }
} }