From: Dragos Oancea Date: Wed, 31 May 2023 12:41:39 +0000 (+0300) Subject: [mod_verto] coverity CID 1468439 (Dereference after null check) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889f761df635655bbff7e96ddcfc28e6dd300bc2;p=thirdparty%2Ffreeswitch.git [mod_verto] coverity CID 1468439 (Dereference after null check) --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 00b2b4de00..7a1b5d17e8 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -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); } - if (!zstr(str)) { + if (!zstr(str) && event && *event) { edup = strdup(str); switch_assert(edup);