diff options
Diffstat (limited to 'contrib/librdns/packet.c')
-rw-r--r-- | contrib/librdns/packet.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/librdns/packet.c b/contrib/librdns/packet.c index 532b5de91..25f3d8979 100644 --- a/contrib/librdns/packet.c +++ b/contrib/librdns/packet.c @@ -266,8 +266,11 @@ rdns_add_edns0 (struct rdns_request *req) *p16++ = htons (UDP_PACKET_SIZE); /* Extended rcode 00 00 */ *p16++ = 0; - /* Z 10000000 00000000 to allow dnssec, disabled currently */ - *p16++ = 0; + /* Z 10000000 00000000 to allow dnssec */ + p8 = (uint8_t *)p16; + *p8++ = 0x80; + *p8++ = 0; + p16 = (uint16_t *)p8; /* Length */ *p16 = 0; req->pos += sizeof (uint8_t) + sizeof (uint16_t) * 5; |