Skip to content

Commit

Permalink
Remove fsm state change from ni_dhcp4_device_drop_lease
Browse files Browse the repository at this point in the history
Signed-off-by: Olaf Hering <olaf@aepfle.de>
  • Loading branch information
olafhering committed Sep 2, 2014
1 parent 03361c9 commit a07b810
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dhcp4/device.c
Expand Up @@ -197,11 +197,8 @@ ni_dhcp4_device_drop_lease(ni_dhcp4_device_t *dev)
ni_addrconf_lease_t *lease;

if ((lease = dev->lease) != NULL) {
ni_addrconf_lease_free(lease);
dev->lease = NULL;

/* Go back to square one */
dev->fsm.state = NI_DHCP4_STATE_INIT;
ni_addrconf_lease_free(lease);
}
}

Expand Down

0 comments on commit a07b810

Please sign in to comment.