Checking the GitHub copy of the code for libresolv68 and libresolv68.120.2, it looks like a change in dns_util.c from == to >= in line 243 (v68) / line 246 (v68.120.2) winds up triggering this. With that reverted, the function operates as expected. That said, this change could be needed for the above security patch, and the resultant null afterwards is an unintended side-effect, so if you opt to make a local function copy, beware.