From 5c9afd93a93db74cbe83ed2ada7a3eefd6de3b70 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Wed, 7 Feb 2024 11:07:38 +0100 Subject: [PATCH] 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. --- src/libsystemd-network/sd-dhcp6-client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index db4e0f9c59..5a26102e23 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;