<p>Hi Victor,<br>
The patch does indeed fix the crash.  I've been looking at <code>init_child_trusted()</code> and should it not be safe to call it as written?  This seems to be "safe":</p>
<pre><code> 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;
        }
</code></pre>
<p>I'm not that familiar with the inner workings of this particular module so perhaps the best fix is the one you suggested.</p>
<p>Best regards,<br>
Spencer</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2151?email_source=notifications&email_token=ABO7UZPM7NHWPPVTTSLFX73QWVF2DA5CNFSM4JR7JL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUMH5Y#issuecomment-560514039">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLZHPT5P4LC6PZZWLLQWVF2DANCNFSM4JR7JL4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKFSJ4LMADHYEBFUVDQWVF2DA5CNFSM4JR7JL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUMH5Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2151?email_source=notifications\u0026email_token=ABO7UZPM7NHWPPVTTSLFX73QWVF2DA5CNFSM4JR7JL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUMH5Y#issuecomment-560514039",
"url": "https://github.com/kamailio/kamailio/issues/2151?email_source=notifications\u0026email_token=ABO7UZPM7NHWPPVTTSLFX73QWVF2DA5CNFSM4JR7JL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUMH5Y#issuecomment-560514039",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>