[sr-dev] [kamailio/kamailio] Crash in permissions module (#2151)

sjthomason notifications at github.com
Mon Dec 2 19:12:49 CET 2019


Hi Victor,
The patch does indeed fix the crash.  I've been looking at `init_child_trusted()` and should it not be safe to call it as written?  This seems to be "safe":

```
	if (!db_url.s) {
		return 0;
	}

	db_handle = perm_dbf.init(&db_url);
	if (!db_handle) {
		LM_ERR("unable to connect database\n");
		return -1;
	}
```

I'm not that familiar with the inner workings of this particular module so perhaps the best fix is the one you suggested.

Best regards,
Spencer


-- 
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/issues/2151#issuecomment-560514039
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191202/acb1e64f/attachment.html>


More information about the sr-dev mailing list