]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check correct auth bits.
authorRoy Marples <roy@marples.name>
Thu, 6 Aug 2015 12:49:47 +0000 (12:49 +0000)
committerRoy Marples <roy@marples.name>
Thu, 6 Aug 2015 12:49:47 +0000 (12:49 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 7e662f1524df4615582dc404bcfe91bc2ff9c2f7..cd6025961501572f0f17e7910efd8fb43a8b42ed 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2245,7 +2245,7 @@ auth:
                else
                        logger(ifp->ctx, LOG_DEBUG,
                            "%s: accepted reconfigure key", ifp->name);
-       } else if (ifp->options->auth.options & DHCPCD_AUTH_REQUIRE) {
+       } else if (ifp->options->auth.options & DHCPCD_AUTH_SENDREQUIRE) {
                logger(ifp->ctx, LOG_ERR,
                    "%s: authentication now required", ifp->name);
                goto ex;