From: Fernando Fernandez Mancera Date: Wed, 7 Feb 2024 10:07:38 +0000 (+0100) Subject: sd-dhcp6-client: allow setting send-release when client is running X-Git-Tag: v256-rc1~951 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c9afd93a93db74cbe83ed2ada7a3eefd6de3b70;p=thirdparty%2Fsystemd.git sd-dhcp6-client: allow setting send-release when client is running The send-release option only affects to the client when STOPPING. There is no reason to do not allow this option to be set while the client is running. An user might want to delay the decision of sending a RELEASE message to a later stage where the client is already running. --- diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index db4e0f9c591..5a26102e232 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -511,7 +511,6 @@ int sd_dhcp6_client_set_rapid_commit(sd_dhcp6_client *client, int enable) { int sd_dhcp6_client_set_send_release(sd_dhcp6_client *client, int enable) { assert_return(client, -EINVAL); - assert_return(!sd_dhcp6_client_is_running(client), -EBUSY); client->send_release = enable; return 0;