mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-04 05:55:38 +08:00
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
This commit is contained in:
parent
09f8c704f8
commit
7b1d4c732e
@ -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.wWeight, ptr);
|
||||||
PUTSHORT(rr->Data.SRV.wPort, ptr);
|
PUTSHORT(rr->Data.SRV.wPort, ptr);
|
||||||
}
|
}
|
||||||
|
dnptrs = 0; /* compression not allowed */
|
||||||
PUTDOMAIN(rr->Data.SRV.pNameTarget, ptr);
|
PUTDOMAIN(rr->Data.SRV.pNameTarget, ptr);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user