[Dnsmasq-discuss] [PATCH] Fix compilation without HAVE_DNSSEC
Pali Rohár
pali.rohar at gmail.com
Fri Jan 1 21:44:38 GMT 2016
On Friday 01 January 2016 20:54:53 Simon Kelley wrote:
> On 23/12/15 21:10, Pali Rohár wrote:
> > Do not call add_do_bit which is only for dnssec code.
> > ---
> >
> > src/forward.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/src/forward.c b/src/forward.c
> > index 041353c..bffea78 100644
> > --- a/src/forward.c
> > +++ b/src/forward.c
> > @@ -793,8 +793,10 @@ void reply_query(int fd, int family, time_t
> > now)
> >
> > header->hb4 |= HB4_CD;
> >
> > if (forward->flags |= FREC_AD_QUESTION)
> >
> > header->hb4 |= HB4_AD;
> >
> > +#ifdef HAVE_DNSSEC
> >
> > if (forward->flags & FREC_DO_QUESTION)
> >
> > add_do_bit(header, nn, (char *)pheader + plen);
> >
> > +#endif
> >
> > forward_query(-1, NULL, NULL, 0, header, nn, now, forward,
> > forward->flags & FREC_AD_QUESTION, forward->flags &
> > FREC_DO_QUESTION); return;
> >
> > }
>
> Is this against 2.75? All the EDNS0 header code has had a major
> overhaul in the development code, and I think that this is probably
> no longer relevant. If not please shout and I'll look again.
Current code in git: ce5732e84fc46d7f99c152f736cfb4ef5ec98a01
--
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20160101/241f16d0/attachment.sig>
More information about the Dnsmasq-discuss
mailing list