Skip to content

Commit 1387657

Browse files
kartbendanieldegrasse
authored andcommitted
net: dns: remove redundant check in mdns_unpack_query_header
Drop this redundant check that was likely meant to be checking that Z field is zero but in the case of reception the RFC says it MUST be ignored anyway. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent dc24583 commit 1387657

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/net/lib/dns/dns_pack.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,6 @@ int mdns_unpack_query_header(struct dns_msg_t *msg, uint16_t *src_id)
462462
return -EINVAL;
463463
}
464464

465-
if (dns_header_opcode(dns_header) != 0) {
466-
return -EINVAL;
467-
}
468-
469465
if (dns_header_rcode(dns_header) != 0) {
470466
return -EINVAL;
471467
}

0 commit comments

Comments
 (0)