mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
sd-dhcp-client: fix memory corruption
This commit is contained in:
@@ -783,7 +783,7 @@ static int client_parse_offer(uint8_t code, uint8_t len, const uint8_t *option,
|
||||
memcpy(&lease->dns[i]->s_addr, option + 4 * i, 4);
|
||||
}
|
||||
|
||||
lease->dns[i + 1] = NULL;
|
||||
lease->dns[len / 4] = NULL;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user