The _a_match function in libmdnsd/mdnsd.c seems broken. I have a hard time understanding what it is supposed to do, even though it seems simple enough. But I guess it is supposed to return 1 if the input record is identical to the input stored answer, and 0otherwise.
In that case the comparison of A and AAAA records is broken because it will always return 1 for these types of records.
The
_a_match
function inlibmdnsd/mdnsd.c
seems broken. I have a hard time understanding what it is supposed to do, even though it seems simple enough. But I guess it is supposed to return1
if the input record is identical to the input stored answer, and0
otherwise.In that case the comparison of A and AAAA records is broken because it will always return
1
for these types of records.https://github.com/troglobit/mdnsd/blob/46e13a0a86dd789033e296904a108eccfc081f00/libmdnsd/mdnsd.c#L205-L206