summaryrefslogtreecommitdiff
path: root/src/systemd/sd-dhcp-client.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-12 21:47:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-13 00:00:56 +0900
commite4336c0a5df42f4c88ed31c4bad743b93b69718f (patch)
treef47eabfb9769385a6c84e53c6726c47bc867c356 /src/systemd/sd-dhcp-client.h
parentb433300e4cd5cc9ea6a3240b8d5755fd62c26d99 (diff)
downloadsystemd-e4336c0a5df42f4c88ed31c4bad743b93b69718f.tar.gz
dhcp: length of each user class field must be positive
This also fixes an memory leak when sd_dhcp_client_set_user_class() is called multiple times.
Diffstat (limited to 'src/systemd/sd-dhcp-client.h')
-rw-r--r--src/systemd/sd-dhcp-client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/sd-dhcp-client.h b/src/systemd/sd-dhcp-client.h
index c35328a9a6..822286919e 100644
--- a/src/systemd/sd-dhcp-client.h
+++ b/src/systemd/sd-dhcp-client.h
@@ -181,7 +181,7 @@ int sd_dhcp_client_set_mud_url(
const char *mudurl);
int sd_dhcp_client_set_user_class(
sd_dhcp_client *client,
- const char* const *user_class);
+ char * const *user_class);
int sd_dhcp_client_get_lease(
sd_dhcp_client *client,
sd_dhcp_lease **ret);