1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 21:55:36 +03:00

sd-dhcp-server: use free_and_replace() at one more place

This commit is contained in:
Yu Watanabe 2022-01-23 02:46:46 +09:00
parent 4f9dcf3dc5
commit 255d493324

View File

@ -667,8 +667,7 @@ static int parse_request(uint8_t code, uint8_t len, const void *option, void *us
if (!data) if (!data)
return -ENOMEM; return -ENOMEM;
free(req->client_id.data); free_and_replace(req->client_id.data, data);
req->client_id.data = data;
req->client_id.length = len; req->client_id.length = len;
} }