summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-02-11 04:16:59 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-02-11 04:16:59 +0000
commite0481a0535bc5c2aea943f5b44e8e9e7689a7ef6 (patch)
tree007d2b3567d391fec7a95bb576f6cea41ee9b4ed /sbin
parent41dab8420d697dce3547e287b66f5d38be446541 (diff)
Make "invalid host name" messages log_debug() since the invalid host
name does not cause the lease to be rejected. It just causes the containing option or field to be ignored.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dhclient.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 7f176211630..608b4176763 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.562 2018/02/09 23:23:02 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.563 2018/02/11 04:16:58 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1163,7 +1163,7 @@ packet_to_lease(struct interface_info *ifi, struct option_data *options)
buf = pretty_print_domain_search(options[i].data,
options[i].len);
if (buf == NULL || res_hnok_list(buf) == 0) {
- log_warnx("%s: invalid host name in %s",
+ log_debug("%s: invalid host name in %s",
log_procname, name);
continue;
}
@@ -1176,7 +1176,7 @@ packet_to_lease(struct interface_info *ifi, struct option_data *options)
* entries in the resolv.conf 'search' statement.
*/
if (res_hnok_list(pretty) == 0) {
- log_warnx("%s: invalid host name in %s",
+ log_debug("%s: invalid host name in %s",
log_procname, name);
continue;
}
@@ -1184,7 +1184,7 @@ packet_to_lease(struct interface_info *ifi, struct option_data *options)
case DHO_HOST_NAME:
case DHO_NIS_DOMAIN:
if (res_hnok(pretty) == 0) {
- log_warnx("%s: invalid host name in %s",
+ log_debug("%s: invalid host name in %s",
log_procname, name);
continue;
}
@@ -1236,7 +1236,7 @@ packet_to_lease(struct interface_info *ifi, struct option_data *options)
}
memcpy(lease->server_name, packet->sname, DHCP_SNAME_LEN);
if (res_hnok(lease->server_name) == 0) {
- log_warnx("%s: invalid host name in SNAME ignored",
+ log_debug("%s: invalid host name in SNAME ignored",
log_procname);
free(lease->server_name);
lease->server_name = NULL;