[Dnsmasq-discuss] Segfault problem with --conntrack option
Giacomo Tazzari
giacomo.tazzari at gmail.com
Sun Apr 21 17:34:47 BST 2013
Hello!
I encountered a bug that makes dnsmasq segfaults when the --conntrack
option is enabled.
I am not entirely sure how to reproduce it: on my router (an Ubuntu server)
it seems to occur sometimes when a remote DNS responds with ServFail to an
A query.
Anyway, after compiling with debugging symbols, I figured out how to fix it:
$ diff dnsmasq-2.66/src/forward.c dnsmasq-2.66-fixed/src/forward.c
372c372
< if (option_bool(OPT_CONNTRACK))
---
> if (udpaddr && option_bool(OPT_CONNTRACK))
Otherwise get_incoming_mark() will crash when it tries to dereference
"peer_addr"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130421/5116d26b/attachment.html>
More information about the Dnsmasq-discuss
mailing list