]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fixed the IfaceMgr code which missed negation in error condition.
authorMarcin Siodelski <marcin@isc.org>
Tue, 11 Dec 2018 19:23:10 +0000 (20:23 +0100)
committerMarcin Siodelski <marcin@isc.org>
Tue, 11 Dec 2018 19:23:10 +0000 (20:23 +0100)
Agreed on jabber.

src/lib/dhcp/iface_mgr.cc

index 6142624a4f746bfd62b854ac07c011934c901c58..ff90384beb3721bb1b43d374352e806fbb7b3ad8 100644 (file)
@@ -516,7 +516,7 @@ IfaceMgr::openSockets4(const uint16_t port, const bool use_bcast,
             }
 
             IOAddress out_address("0.0.0.0");
-            if (iface->getAddress4(out_address)) {
+            if (!iface->getAddress4(out_address)) {
                 IFACEMGR_ERROR(SocketConfigError, error_handler,
                                "the interface " << iface->getName()
                                << " has no usable IPv4 addresses configured");