]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix botch in forward.c flags code.
authorSimon Kelley <simon@thekelleys.org.uk>
Sun, 17 Jan 2016 21:53:57 +0000 (21:53 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Sun, 17 Jan 2016 21:53:57 +0000 (21:53 +0000)
Thanks to Matthias Anfree for spotting this.

src/forward.c

index c48fd7519163f55be5dcf1730e5aaa8c0607f11f..95c5ef9bb8c150bf46aa6727e0fc8d3c78939fca 100644 (file)
@@ -810,9 +810,9 @@ void reply_query(int fd, int family, time_t now)
            {
              header->hb3 &= ~(HB3_QR | HB3_AA | HB3_TC);
              header->hb4 &= ~(HB4_RA | HB4_RCODE | HB4_CD | HB4_AD);
-             if (forward->flags |= FREC_CHECKING_DISABLED)
+             if (forward->flags & FREC_CHECKING_DISABLED)
                header->hb4 |= HB4_CD;
-             if (forward->flags |= FREC_AD_QUESTION)
+             if (forward->flags & FREC_AD_QUESTION)
                header->hb4 |= HB4_AD;
              if (forward->flags & FREC_DO_QUESTION)
                add_do_bit(header, nn,  (unsigned char *)pheader + plen);