Pre-Submission Checklist

Type Of Change

Checklist:

Description

This PR fixes a crash when dns_cache_init=off.

The issue is described in #3350 and the crash is caused when trying to search in dns_cache.c LOCK_DNS_HASH();.

When dns_cache_init=off, the lock is never initialized and when trying to lock it crashes.

Per my understanding, when dns_cache_init=off, no calls to dns_cache.c should be made and instead call the alternative ones from resolve.c, since the whole functions are compiled only when USE_DNS_CACHE definition is present.

Just a question to clarify, what is the reasoning behind USE_DNS_CACHE definition and a separate dns_cache_init parameter?


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3858

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3858@github.com>