]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] coverity CID 1468439 (Dereference after null check)
authorDragos Oancea <dragos@signalwire.com>
Wed, 31 May 2023 12:41:39 +0000 (15:41 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 31 May 2023 21:43:08 +0000 (00:43 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index 00b2b4de0004214227e33a65929233d24bdb467c..7a1b5d17e8535e22a723646501584bf663d46dad 100644 (file)
@@ -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);