fix userauth

This commit is contained in:
Anthony Minessale 2010-12-29 13:59:12 -06:00
parent 650393fb90
commit 08955a2b29
1 changed files with 4 additions and 4 deletions

View File

@ -1556,14 +1556,14 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
user = cmd + 9;
if ((pass = strchr(user, ':'))) {
*pass++ = '\0';
}
if ((domain_name = strchr(user, '@'))) {
*domain_name++ = '\0';
}
if ((pass = strchr(user, ':'))) {
*pass++ = '\0';
}
if (zstr(user) || zstr(domain_name)) {
switch_snprintf(reply, reply_len, "-ERR invalid");
switch_clear_flag_locked(listener, LFLAG_RUNNING);