From: Roy Marples Date: Thu, 30 Jan 2014 13:27:49 +0000 (+0000) Subject: Warn on missing auth if we request it but do not require it. X-Git-Tag: v6.3.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5046024dd6a3ae3053dd80a7343fd0a2cd8d463;p=thirdparty%2Fdhcpcd.git Warn on missing auth if we request it but do not require it. --- diff --git a/dhcp.c b/dhcp.c index 1641f44c..0d2d23d2 100644 --- a/dhcp.c +++ b/dhcp.c @@ -2147,7 +2147,9 @@ dhcp_handledhcp(struct interface *iface, struct dhcp_message **dhcpp, } else if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) { log_dhcp(LOG_ERR, "missing authentiation", iface, dhcp, from); return; - } + } else if (ifo->auth.options & DHCPCD_AUTH_SEND) + log_dhcp(LOG_WARNING, "missing authentiation", + iface, dhcp, from); /* reset the message counter */ state->interval = 0;