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:
parent
4f9dcf3dc5
commit
255d493324
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user