Skinny: avoid crash when loading config with blank soft-key-set value

This commit is contained in:
Mathieu Parent 2011-02-24 23:53:53 +01:00
parent cffd62aa36
commit 2148d81d74
1 changed files with 3 additions and 0 deletions

View File

@ -1811,6 +1811,9 @@ static switch_status_t load_skinny_config(void)
size_t string_len = strlen(val);
size_t string_pos, start = 0;
int field_no = 0;
if (zstr(val)) {
continue;
}
if (soft_key_set_id > 15) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
"soft-key-set name '%s' is greater than 15 in soft-key-set-set '%s' in profile %s.\n",