提交 d2c34232 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix userauth issue

上级 1d6d9601
......@@ -1548,7 +1548,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
char api_reply[512] = "Allowed-API: all\n";
char log_reply[512] = "";
int allowed_log = 1;
char *tmp;
switch_clear_flag(listener, LFLAG_ALLOW_LOG);
......@@ -1564,8 +1564,9 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
*pass++ = '\0';
}
if ((pass = strchr(user, ':'))) {
*pass++ = '\0';
if ((tmp = strchr(user, ':'))) {
*tmp++ = '\0';
pass = tmp;
}
if (zstr(user) || zstr(domain_name)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论