From 11bdb6f160f3820a3b71d2cfe9fb0572ccc2deb3 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 24 2021 01:32:10 +0000 Subject: Apply patch glibc-rh1868106-2.patch patch_name: glibc-rh1868106-2.patch present_in_specfile: true location_in_specfile: 377 --- diff --git a/support/resolv_test.c b/support/resolv_test.c index 3f2a09f..28af227 100644 --- a/support/resolv_test.c +++ b/support/resolv_test.c @@ -182,6 +182,8 @@ resolv_response_init (struct resolv_response_builder *b, if (flags.tc) b->buffer[2] |= 0x02; b->buffer[3] = 0x80 | flags.rcode; /* Always set RA. */ + if (flags.ad) + b->buffer[3] |= 0x20; /* Fill in the initial section count values. */ b->buffer[4] = flags.qdcount >> 8; diff --git a/support/resolv_test.h b/support/resolv_test.h index 4c2e6c1..be736ae 100644 --- a/support/resolv_test.h +++ b/support/resolv_test.h @@ -134,6 +134,9 @@ struct resolv_response_flags /* If true, the TC (truncation) flag will be set. */ bool tc; + /* If true, the AD (authenticated data) flag will be set. */ + bool ad; + /* Initial section count values. Can be used to artificially increase the counts, for malformed packet testing.*/ unsigned short qdcount;