mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-30 21:28:34 +00:00
34b9f9117fcf4b16f206898624e7decb950182d1
send_ra_alias() has the same problem relay_upstream6() had. It keeps a pointer to the header of the router advertisement while prefixes and options are added to the packet, and afterwards sets the router lifetime and the M and O flags through it. If the advertisement doesn't fit the packet buffer as it is, expand_buf() has moved the buffer by then. The flags are set in memory which has been freed, and the advertisement goes out without them, so hosts which see it don't use DHCPv6. The buffer starts out at 548 bytes, so this takes an advertisement larger than that: many prefixes on one interface, or long lists of DNS servers or search domains. It happens each time an advertisement needs a larger buffer than any packet before it. Find the header again each time before writing to it. Credit to Georgi Steffenhagen (ServerTec IT Engineering) for finding and fixing this.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%