Module: kamailio Branch: master Commit: 58c1ab8fa03c992d201f226eab06d2fbe9999ee5 URL: https://github.com/kamailio/kamailio/commit/58c1ab8fa03c992d201f226eab06d2fbe9999ee5
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2017-03-01T10:08:50+01:00 topos: restrict storage value to db and redis --- Modified: src/modules/topos/topos_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/58c1ab8fa03c992d201f226eab06d2fbe9999ee5.diff Patch: https://github.com/kamailio/kamailio/commit/58c1ab8fa03c992d201f226eab06d2fbe9999ee5.patch --- diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c index 527b81f..7e33605 100644 --- a/src/modules/topos/topos_mod.c +++ b/src/modules/topos/topos_mod.c @@ -147,6 +147,12 @@ static int mod_init(void) "provide all functions needed\n"); return -1; } + } else { + if(_tps_storage.len!=7 && strncmp(_tps_storage.s, "redis", 5)!=0) { + LM_ERR("unknown storage type: %.*s\n", + _tps_storage.len, _tps_storage.s); + return -1; + } } if(_tps_sanity_checks!=0) { _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev