fix userauth issue
This commit is contained in:
parent
1d6d9601d0
commit
d2c34232ab
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue