[sr-dev] [kamailio/kamailio] permissions: check for db_url being set on reload (#1621)

Armen Babikyan notifications at github.com
Tue Aug 14 20:04:14 CEST 2018


This fixes a null pointer exception in a config that loads permission.so but does not set its db_url.

To repro, create a config with loadmodule "permissions.so" but NOT modparam("permissions", "db_url", "foo"), and then run "kamctl trusted reload".  Kamailio will crash without this patch.  With this patch, kamctl will return with "Reload failed" and a message will be printed in kamailio logs.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1621#issuecomment-412963327
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180814/5e4b4b1d/attachment.html>


More information about the sr-dev mailing list