mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
Remove redundant syntax check in dl_login
This commit is contained in:
parent
ca18dcbe02
commit
de7dc5685d
@ -3112,12 +3112,6 @@ SWITCH_STANDARD_API(dl_login)
|
|||||||
|
|
||||||
argc = switch_separate_string(myarg, ';', argv, (sizeof(argv) / sizeof(argv[0])));
|
argc = switch_separate_string(myarg, ';', argv, (sizeof(argv) / sizeof(argv[0])));
|
||||||
|
|
||||||
if (zstr(cmd)) {
|
|
||||||
stream->write_function(stream, "USAGE: %s\n", LOGIN_SYNTAX);
|
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argv[0] && !strncasecmp(argv[0], "profile=", 8)) {
|
if (argv[0] && !strncasecmp(argv[0], "profile=", 8)) {
|
||||||
char *profile_name = argv[0] + 8;
|
char *profile_name = argv[0] + 8;
|
||||||
profile = switch_core_hash_find(globals.profile_hash, profile_name);
|
profile = switch_core_hash_find(globals.profile_hash, profile_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user