summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/dhclient/dhclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/dhclient/dhclient.c')
-rw-r--r--usr.sbin/dhcp/dhclient/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcp/dhclient/dhclient.c b/usr.sbin/dhcp/dhclient/dhclient.c
index 4844ffd0960..5f3492a5c2c 100644
--- a/usr.sbin/dhcp/dhclient/dhclient.c
+++ b/usr.sbin/dhcp/dhclient/dhclient.c
@@ -2317,8 +2317,8 @@ int check_option (struct client_lease *l, int option) {
/* This has to be a valid internet domain name */
if (!res_hnok(sbuf)) {
warn("Bogus Host Name option %d: %s (%s)", option,
- sbuf, option);
- return(1);
+ sbuf, opbuf);
+ return(0);
}
return(1);
case DHO_PAD :