Is sure that res->dnsa4_nrr is always >= 1?
Iñaki Baz Castillo
ibc at aliax.net
Fri Feb 4 22:41:12 MSK 2011
2011/2/4 Michael Tokarev <mjt at tls.msk.ru>:
> Before constructing return structure, the library verifies
> there's at least one resource record (RR) of the requested
> type. If that's not the case, the library will return
> corresponding return code -- DNS_E_NODATA.
So it's better (more secure) to check dns_status() rather than
checking the existence or not of a rr?
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the udns
mailing list