diff options
Diffstat (limited to 'src/usr')
| -rw-r--r-- | src/usr/dhcpmgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c index a5a79fdfc..6042f8b2c 100644 --- a/src/usr/dhcpmgmt.c +++ b/src/usr/dhcpmgmt.c @@ -45,6 +45,10 @@ int dhcp ( struct net_device *netdev ) { struct in_addr gateway = { INADDR_NONE }; int rc; + /* Check we can open the interface first */ + if ( ( rc = ifopen ( netdev ) ) != 0 ) + return rc; + /* Free up any previously-acquired options */ if ( dhcp_options ) { unregister_dhcp_options ( dhcp_options ); |
