mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-20 11:29:35 +00:00
7a663fd46b9f63b3cc49b77b2dc50a1ed94c3428
If the hostname supplied by a DHCPv4 client doesn't pass the test if being an allowed hostname (ie without metacharacters) it is ignored, but still passed to the environment variable DNSMASQ_SUPPLIED_HOSTNAME in the dhcp-script. Change this so that only valid hostnames appear in thos variable, to avoid security problems with scripts that son't sanitise. This brings DHCPv4 behaviour in line with DHCPv6. Thanks to Daniel Birtwhistle for spotting the problem.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%