mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
sd-dhcp-client: client ID always has non-zero data
Follow-up for f04c991a2f.
Fixes CID#1510978.
This commit is contained in:
committed by
Luca Boccassi
parent
c093bfe0ad
commit
251ca88230
@@ -346,7 +346,7 @@ int sd_dhcp_client_get_client_id(
|
||||
assert_return(client, -EINVAL);
|
||||
|
||||
if (client->client_id_len > 0) {
|
||||
if (client->client_id_len < offsetof(sd_dhcp_client_id, raw.data))
|
||||
if (client->client_id_len <= offsetof(sd_dhcp_client_id, raw.data))
|
||||
return -EINVAL;
|
||||
|
||||
if (ret_type)
|
||||
|
||||
Reference in New Issue
Block a user