ssahani / rpms / dhcp

Forked from rpms/dhcp 5 years ago
Clone
6ed5c12
diff --git a/common/discover.c b/common/discover.c
6ed5c12
index 26a78ca..ed01e45 100644
6ed5c12
--- a/common/discover.c
6ed5c12
+++ b/common/discover.c
6ed5c12
@@ -635,6 +635,8 @@ discover_interfaces(int state) {
6ed5c12
 			interface_dereference(&tmp, MDL);
6ed5c12
 			tmp = interfaces; /* XXX */
6ed5c12
 		}
6ed5c12
+		if (tmp != NULL)
6ed5c12
+			get_hw_addr(tmp);
6ed5c12
 
6ed5c12
 		if (dhcp_interface_discovery_hook) {
6ed5c12
 			(*dhcp_interface_discovery_hook)(tmp);