[sr-dev] [kamailio/kamailio] sqlops: sqlops_do_query - Make result parameter optional in C API (#1467)
Hugh Waite
notifications at github.com
Fri Mar 2 10:27:43 CET 2018
sql_get_result does not currently check the 'name' parameter and will crash in core_case_hash if this is NULL. This is also true for sql_get_connection and sql_init_con. However, these three functions are only called from within the sqlops module.
I will add a check to the C-API/KEMI wrapper functions that call them (sqlops_do_query, sqlops_get_value, sqlops_is_null, etc.)? Is it needed inside sql_get_result as well?
--
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/1467#issuecomment-369868083
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180302/772d1ba0/attachment-0001.html>
More information about the sr-dev
mailing list