diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2016-07-18 22:42:09 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2016-07-18 22:42:13 +0200 |
commit | 12c40d4cc4332161baa928092c08455bfee36096 (patch) | |
tree | 3cbd0046b2b4d8a8393b796181b5ab9148d2bdbb | |
parent | ba19c6e1819a89d3b90811ce4fd785a606dfd223 (diff) |
resolved: replace bitwise and with logical and
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index ea0be56d98..a8ad8fe342 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -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[] = { |