From ea30fde496bd711f930d6f780213185e536c7980 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Wed, 30 Jan 2019 09:40:51 -0500 Subject: [PATCH] FS-11637: [mod_verto] Fix crash on root login when no root-password is configured --- src/mod/endpoints/mod_verto/mod_verto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 6ad57d2760..d48b53430e 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -915,7 +915,7 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char * } - if (!strcmp(login, "root")) { + if (!strcmp(login, "root") && jsock->profile->root_passwd) { if (!(r = !strcmp(passwd, jsock->profile->root_passwd))) { *code = CODE_AUTH_FAILED; switch_snprintf(message, mlen, "Authentication Failure");