summaryrefslogtreecommitdiff
path: root/sbin/dhclient/kroute.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-02-24 01:23:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-02-24 01:23:20 +0000
commit4ab64cb44f119936663da2441694ab061b9b37df (patch)
tree3eff5ab8407ca53dcb998a4fbea968ac729746e7 /sbin/dhclient/kroute.c
parent378f2d0ed3ec525bffcb248f271a228ed3d42539 (diff)
Don't log a complaint that a non-existant default route could not be
deleted. Be happy that the goal of no default route has been achieved. Part of the cleaning up the logs prodding by deraadt@. ok guenther@. error in first version pointed out by sthen@.
Diffstat (limited to 'sbin/dhclient/kroute.c')
-rw-r--r--sbin/dhclient/kroute.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 9a73434bf07..8737e010e29 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.38 2013/02/21 14:10:22 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.39 2013/02/24 01:23:19 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -766,7 +766,9 @@ resolv_conf_priority(int domain)
m_rtmsg.m_rtm.rtm_msglen += 2 * sizeof(sin);
if (writev(s, iov, iovcnt) == -1) {
- warning("RTM_GET of default route: %s", strerror(errno));
+ if (errno != ESRCH)
+ warning("RTM_GET of default route: %s",
+ strerror(errno));
goto done;
}