via: 2148d81d74e18c49e92375c1cdc970a08d7fac21 (commit)
from: cffd62aa36840f1b132ee60cf012aeb5f3542883 (commit)
= COMMIT LOG ===========================================================
committer: Mathieu Parent
comments:
Skinny: avoid crash when loading config with blank soft-key-set value
diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c
index 46acdb6..4061b94 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",
Summary of changes: src/mod/endpoints/mod_skinny/mod_skinny.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source