diff options
author | Don Lewis <truckman@FreeBSD.org> | 2016-05-16 01:38:24 +0000 |
---|---|---|
committer | Don Lewis <truckman@FreeBSD.org> | 2016-05-16 01:38:24 +0000 |
commit | 0ee6da55a6e2dfe77afdb24df20277555be53bb8 (patch) | |
tree | 7d953100a42ef7dacdd7ac989b8af1e766c10f29 | |
parent | 0abffcb5f83e67d89f0c3bc6fc38b99284790934 (diff) |
Notes
-rw-r--r-- | lib/libc/resolv/res_query.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/resolv/res_query.c b/lib/libc/resolv/res_query.c index 9731638a7f29..c3c6313730f4 100644 --- a/lib/libc/resolv/res_query.c +++ b/lib/libc/resolv/res_query.c @@ -135,12 +135,10 @@ again: if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { n = res_nopt(statp, n, buf, sizeof(buf), anslen); - if (n > 0) { + if (n > 0 && (statp->options & RES_NSID) != 0U) { rdata = &buf[n]; - if ((statp->options & RES_NSID) != 0U) { - n = res_nopt_rdata(statp, n, buf, sizeof(buf), - rdata, NS_OPT_NSID, 0, NULL); - } + n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, + NS_OPT_NSID, 0, NULL); } } #endif |