resolved: replace bitwise and with logical and

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2016-07-18 22:42:09 +02:00
parent ba19c6e181
commit 12c40d4cc4

View file

@ -720,7 +720,7 @@ int dns_packet_append_opt(DnsPacket *p, uint16_t max_udp_size, bool edns0_do, in
goto fail;
/* RDLENGTH */
if (edns0_do & !DNS_PACKET_QR(p)) {
if (edns0_do && !DNS_PACKET_QR(p)) {
/* If DO is on and this is not a reply, also append RFC6975 Algorithm data */
static const uint8_t rfc6975[] = {