openbsd-ports/net/dnsmasq/patches/patch-src_option_c
ajacoutot e402a6f39e Several fixes from upstream:
- Correct listener logic when no TFTP and no-interface listen address.
- Do duplicate dhcp-host address check in --test mode.

from Brad
2012-06-14 13:39:44 +00:00

17 lines
474 B
Plaintext

$OpenBSD: patch-src_option_c,v 1.1 2012/06/14 13:39:44 ajacoutot Exp $
Do duplicate dhcp-host address check in --test mode.
--- src/option.c.orig Thu Jun 14 01:06:04 2012
+++ src/option.c Thu Jun 14 01:06:37 2012
@@ -3762,6 +3762,9 @@ void read_opts(int argc, char **argv, char *compile_op
if (testmode)
{
+ /* Can cause a call to die() */
+ check_dhcp_hosts(1);
+
fprintf(stderr, "dnsmasq: %s.\n", _("syntax check OK"));
exit(0);
}