bind_star_handling with wildcards that match multiple labels

Sam Trenholme strenholme.usenet at gmail.com
Tue Jun 12 18:01:20 EDT 2007


First of all, I wasn't able to apply Andrew's patch.  So, I looked at
the bug report and made my own patch.

I have copied the following zone file:

ns.example.net. 127.0.0.1
a.example.net. 127.0.0.2
*.example.net. 127.0.0.3

Then I did a number of tests:

askmara Aa.example.net.
askmara Ab.example.net.
askmara Ac.example.net.
askmara Aa.a.example.net.
askmara Aa.b.example.net.
askmara Aa.a.a.example.net.
askmara Aa.a.b.example.net.
askmara @a.example.net.
askmara @b.example.net.
askmara @c.example.net.
askmara @a.a.example.net.
askmara @a.b.example.net.
askmara @a.a.a.example.net.
askmara @a.a.b.example.net.

The behaviour, which is broken in 1.2.12.06, works fine in the 1.3
snapshot with the patch applied.

Attached to this message is both the patch that fixes this bug, and a
patch to fix a memory leak in 1.2.12.06 that is *ONLY* triggered when
bind_star_handling has a value of 2.

A version of MaraDNS with these patches applied is also available here:

http://www.maradns.org/download/1.3/snap/200706

- Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maradns-1.3.05-star_collision_memleak.patch
Type: application/octet-stream
Size: 447 bytes
Desc: not available
Url : http://woodlane.webconquest.com/pipermail/list/attachments/20070612/25dedc73/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maradns-1.3.05-star_handling.patch
Type: application/octet-stream
Size: 3679 bytes
Desc: not available
Url : http://woodlane.webconquest.com/pipermail/list/attachments/20070612/25dedc73/attachment-0001.obj 


More information about the list mailing list