Package: nstx Version: 1.1-beta6-3 Tags: patch nstxd is dying with SEGV when it receives "normal" (i.e. non-nstx) DNS traffic (can be tested e.g. with fpdns); this comes from freeing a the NULL pointer "buf" (which is malloced in some code paths, but not in all); patch attached.
cm. -- Hat irgendwer schlechte Schwingungen in seiner globalen Eierkuchen-Aura bekommen weil man ihm gesagt hat er soll bitte nicht andauernd mit Vollquotes in 10 Gruppen gleichzeitig crossposten? Albert Koellner in at.usenet
--- nstx-1.1-beta6/nstx_dns.c 2005-12-29 13:38:11.000000000 +0100 +++ nstx-1.1-beta6.patched/nstx_dns.c 2005-12-28 20:52:51.000000000 +0100 @@ -105,8 +105,10 @@ ptr += chunklen + 1; } } - buf[buflen] = 0; - buflen++; + if(buf) { + buf[buflen] = 0; + buflen++; + } return buf; }