ssahani / rpms / dhcp

Forked from rpms/dhcp 5 years ago
Clone
Blob Blame History Raw
diff --git a/common/discover.c b/common/discover.c
index 26a78ca..0618d3f 100644
--- a/common/discover.c
+++ b/common/discover.c
@@ -722,11 +722,6 @@ discover_interfaces(int state) {
 	}
 
 
-	/* If we're just trying to get a list of interfaces that we might
-	   be able to configure, we can quit now. */
-	if (state == DISCOVER_UNCONFIGURED) {
-		return;
-	}
 
 	/* Weed out the interfaces that did not have IP addresses. */
 	tmp = last = next = NULL;
@@ -923,6 +918,10 @@ discover_interfaces(int state) {
 			interface_reference (&tmp, next, MDL);
 	}
 
+
+	if (state == DISCOVER_UNCONFIGURED) {
+		return;
+	}
 	/*
 	 * Now register all the remaining interfaces as protocols.
 	 * We register with omapi to allow for control of the interface,