aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_queriesmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_queriesmatch.c')
-rw-r--r--resolv/res_queriesmatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/res_queriesmatch.c b/resolv/res_queriesmatch.c
index ba1c1d0..37db01a 100644
--- a/resolv/res_queriesmatch.c
+++ b/resolv/res_queriesmatch.c
@@ -95,14 +95,14 @@ __libc_res_queriesmatch (const unsigned char *buf1, const unsigned char *eom1,
/* Only header section present in replies to dynamic update
packets. */
- if ((((HEADER *) buf1)->opcode == ns_o_update) &&
- (((HEADER *) buf2)->opcode == ns_o_update))
+ if ((((UHEADER *) buf1)->opcode == ns_o_update) &&
+ (((UHEADER *) buf2)->opcode == ns_o_update))
return 1;
/* Note that we initially do not convert QDCOUNT to the host byte
order. We can compare it with the second buffer's QDCOUNT
value without doing this. */
- int qdcount = ((HEADER *) buf1)->qdcount;
+ int qdcount = ((UHEADER *) buf1)->qdcount;
if (qdcount != ((UHEADER *) buf2)->qdcount)
return 0;