mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 10:26:41 +00:00
fix seg in alias del
This commit is contained in:
parent
a296cdaba2
commit
d621262db1
@ -1921,7 +1921,7 @@ SWITCH_DECLARE(switch_status_t) switch_console_set_alias(const char *string)
|
||||
switch_cache_db_handle_t *db = NULL;
|
||||
char *sql = NULL;
|
||||
|
||||
if (!strcmp(argv[1], argv[2])) {
|
||||
if (argc > 2 && !strcmp(argv[1], argv[2])) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Alias and command cannot be the same, this will cause loop!\n");
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user