main/dhcpcd: fix CVE-2014-6060

fixes #3359