This is due to the dialog module mod_init method using the cachedb
module methods before child_init has been called.

In that case, the SQL handled is still set to NULL.

Fixes issue #197.
You can merge this Pull Request by running:

  git pull https://github.com/dsandras/opensips ds-fix-cachedbsql-crash

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenSIPS/opensips/pull/206

-- Commit Summary --

  * OpenSIPS: Fixed possible crash in cachedb module.

-- File Changes --

    M modules/cachedb_sql/cachedb_sql.c (9)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/206.patch
https://github.com/OpenSIPS/opensips/pull/206.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/206
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to