fix userauth issue

This commit is contained in:
Anthony Minessale 2011-01-12 15:32:05 -06:00
parent 1d6d9601d0
commit d2c34232ab
1 changed files with 4 additions and 3 deletions

View File

@ -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)) {