mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-03 14:56:17 +00:00
nm
This commit is contained in:
parent
4f4294327d
commit
39ff276c1c
@ -1556,14 +1556,14 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
|
|||||||
|
|
||||||
user = cmd + 9;
|
user = cmd + 9;
|
||||||
|
|
||||||
if ((domain_name = strchr(user, '@'))) {
|
|
||||||
*domain_name++ = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((pass = strchr(user, ':'))) {
|
if ((pass = strchr(user, ':'))) {
|
||||||
*pass++ = '\0';
|
*pass++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((domain_name = strchr(user, '@'))) {
|
||||||
|
*domain_name++ = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
if (zstr(user) || zstr(domain_name)) {
|
if (zstr(user) || zstr(domain_name)) {
|
||||||
switch_snprintf(reply, reply_len, "-ERR invalid");
|
switch_snprintf(reply, reply_len, "-ERR invalid");
|
||||||
switch_clear_flag_locked(listener, LFLAG_RUNNING);
|
switch_clear_flag_locked(listener, LFLAG_RUNNING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user