diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-03 01:25:18 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-03 01:42:26 +0100 |
commit | a2db1d6b3f0a6ef52bb5cb5cef40f2de5db380e5 (patch) | |
tree | 57efd96c97a6b4338d3d3b4dd42970a0badc9449 /src | |
parent | b1b532f58c99f8d199e6081fa9f23b99f8af2a84 (diff) |
libsystemd-dhcp: don't assert on client_stop()
We need to be able to stop the dhcp client at any time, and the function appears to be written to handle this.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-dhcp/dhcp-client.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsystemd-dhcp/dhcp-client.c b/src/libsystemd-dhcp/dhcp-client.c index b9492a5a68..f6a6211022 100644 --- a/src/libsystemd-dhcp/dhcp-client.c +++ b/src/libsystemd-dhcp/dhcp-client.c @@ -260,8 +260,6 @@ static int client_notify(sd_dhcp_client *client, int event) static int client_stop(sd_dhcp_client *client, int error) { assert_return(client, -EINVAL); - assert_return(client->state != DHCP_STATE_INIT && - client->state != DHCP_STATE_INIT_REBOOT, -EALREADY); client->receive_message = sd_event_source_unref(client->receive_message); |