wahern / dns

dns.c: Single file non-blocking DNS C library without callbacks or external dependencies.
http://25thandclement.com/~william/projects/dns.c.html
MIT License
256 stars 64 forks source link

dns_ai_nextaf NULL pointer dereference #15

Closed wahern closed 8 years ago

wahern commented 8 years ago

Previously dns_ai_nextent worked for numeric addresses even if no resolver object was provided. Now the first thing that dns_ai_nextent calls is dns_ai_nextaf, which immediately tries to dereference a ai->res to reach ai->res->resconf.

wahern commented 8 years ago

Fixed in commit 1ba9f8abd23206ee67f7874ea9a9efe308d37b38.