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

This commit is contained in:
Yu Watanabe
2022-01-24 04:18:20 +09:00
parent 4f9dcf3dc5
commit 255d493324
+1 -2
View File
@@ -667,8 +667,7 @@ static int parse_request(uint8_t code, uint8_t len, const void *option, void *us
if (!data)
return -ENOMEM;
free(req->client_id.data);
req->client_id.data = data;
free_and_replace(req->client_id.data, data);
req->client_id.length = len;
}