From 9844c06169ec87ca6c5673fcf5cf6a89063f5f09 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 11 Sep 2018 17:36:37 -0500 Subject: [PATCH] FS-11225: [freeswitch-core] Crash in fs_cli -- missing check for null pointer #resolve --- libs/esl/fs_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index b4a5838175..8c1bf24933 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -753,7 +753,7 @@ static void *msg_thread_run(esl_thread_t *me, void *obj) int known = 1; const char *type = esl_event_get_header(handle->last_event, "content-type"); if (!esl_strlen_zero(type)) { - if (!strcasecmp(type, "log/data")) { + if (!strcasecmp(type, "log/data") && handle->last_event->body) { const char *userdata = esl_event_get_header(handle->last_event, "user-data"); if (esl_strlen_zero(userdata) || esl_strlen_zero(filter_uuid) || !strcasecmp(filter_uuid, userdata)) { int level = 0;