diff options
author | Anton Lavrentiev via Cygwin-patches <cygwin-patches@cygwin.com> | 2022-01-18 17:39:16 -0500 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-01-19 08:05:18 +0100 |
commit | 54f0590a661fc76036a524ca81b9d5375402c233 (patch) | |
tree | 93ca05a538a546e5643b2a008f7fa51b3dd8ad54 | |
parent | 905f51d7978e09b8f21d7442c58751fdf775c637 (diff) | |
download | newlib-54f0590a661fc76036a524ca81b9d5375402c233.zip newlib-54f0590a661fc76036a524ca81b9d5375402c233.tar.gz newlib-54f0590a661fc76036a524ca81b9d5375402c233.tar.bz2 |
Cygwin: resolver: Targets in SRV DNS responses may not be compressed
RFC2782 clearly says so yet it's a common misconception to perform the
compression in the violation of the standard. This patch fixes that
-rw-r--r-- | winsup/cygwin/libc/minires-os-if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minires-os-if.c index 8d3178f..5da1c0c 100644 --- a/winsup/cygwin/libc/minires-os-if.c +++ b/winsup/cygwin/libc/minires-os-if.c @@ -159,6 +159,7 @@ static unsigned char * write_record(unsigned char * ptr, PDNS_RECORD rr, PUTSHORT(rr->Data.SRV.wWeight, ptr); PUTSHORT(rr->Data.SRV.wPort, ptr); } + dnptrs = 0; /* compression not allowed */ PUTDOMAIN(rr->Data.SRV.pNameTarget, ptr); break; default: |