nss_dns: Check address length before creating addrinfo result [BZ #19831]
Previously, we allocated room in the result space before the check, leaving uninitialized data there in case the check failed. This also consolidates the behavior between single (A or AAAA) and dual (A and AAAA in parallel) queries. Single queries checked the record length against the QTYPE, not the RRTYPE. (cherry picked from commit 5e0c421c) (cherry picked from commit 730244f4)
Loading
Please register or sign in to comment