]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] coverity CID 1468443 (Logically dead code)
authorDragos Oancea <dragos@signalwire.com>
Tue, 30 May 2023 11:16:10 +0000 (14:16 +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 3fa7b3473a41f294118a7a6860f9cc52f2b792f4..8920de7e02cb5312ab9d5ed3ccdcb9a708f975a1 100644 (file)
@@ -1059,7 +1059,7 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char *
                        *code = CODE_AUTH_FAILED;
                        switch_snprintf(message, mlen, "Login Incorrect");
                        login_fire_custom_event(jsock, params, 0, "Login Incorrect");
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Login incorrect for user: %s domain: %s\n", id, domain ? domain : "N/A");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Login incorrect for user: %s domain: %s\n", id, domain);
                } else {
                        switch_xml_t x_param, x_params;
                        const char *use_passwd = NULL, *verto_context = NULL, *verto_dialplan = NULL;