Skip to content

Commit

Permalink
Merge pull request #305 from kmroz/fix_reconfig_changes_error
Browse files Browse the repository at this point in the history
dhcp4: fix link type comparison during device up events
  • Loading branch information
mtomaschewski committed Jul 10, 2014
2 parents 6bc1e04 + bde04a1 commit 9e7ed14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dhcp4/device.c
Expand Up @@ -472,7 +472,8 @@ ni_dhcp4_device_event(ni_dhcp4_device_t *dev, ni_netdev_t *ifp, ni_event_t event
dev->ifname, ifp->name);
ni_string_dup(&dev->ifname, ifp->name);
}
ni_capture_devinfo_refresh(&dev->system, dev->ifname, &dev->link);
/* Does return -1 on failure. */
ni_dhcp4_device_refresh(dev);
break;

case NI_EVENT_LINK_DOWN:
Expand Down

0 comments on commit 9e7ed14

Please sign in to comment.