mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 10:07:26 +00:00
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…
x
Reference in New Issue
Block a user