提交 cb596232 authored 作者: Andrey Volk's avatar Andrey Volk

Merge pull request #1671 in FS/freeswitch from FS-11637 to master

* commit 'ea30fde4':
  FS-11637: [mod_verto] Fix crash on root login when no root-password is configured
......@@ -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");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论