From 2148d81d74e18c49e92375c1cdc970a08d7fac21 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 24 Feb 2011 23:53:53 +0100 Subject: [PATCH] Skinny: avoid crash when loading config with blank soft-key-set value --- src/mod/endpoints/mod_skinny/mod_skinny.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 46acdb6bac..4061b94518 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -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",