aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/res_query.c b/resolv/res_query.c
index b6c70f0..6ac33ce 100644
--- a/resolv/res_query.c
+++ b/resolv/res_query.c
@@ -244,14 +244,14 @@ __libc_res_nquery(res_state statp,
tests of HP2. */
HEADER *hp2 = answerp2 ? (HEADER *) *answerp2 : hp;
- if (n < (int) sizeof (HEADER) && nanswerp2 != NULL
- && *nanswerp2 > (int) sizeof (HEADER))
+ if (n < (int) sizeof (HEADER) && answerp2 != NULL
+ && *resplen2 > (int) sizeof (HEADER))
{
/* Special case of partial answer. */
assert (hp != hp2);
hp = hp2;
}
- else if (nanswerp2 != NULL && *nanswerp2 < (int) sizeof (HEADER)
+ else if (answerp2 != NULL && *resplen2 < (int) sizeof (HEADER)
&& n > (int) sizeof (HEADER))
{
/* Special case of partial answer. */