mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[519-dhcp-server-response-an-empty-rai-field] Added the bad RAI case
This commit is contained in:
@@ -285,8 +285,9 @@ Dhcpv4Exchange::copyDefaultOptions() {
|
||||
}
|
||||
|
||||
// If this packet is relayed, we want to copy Relay Agent Info option
|
||||
// when it is not empty.
|
||||
OptionPtr rai = query_->getOption(DHO_DHCP_AGENT_OPTIONS);
|
||||
if (rai) {
|
||||
if (rai && (rai->len() > Option::OPTION4_HDR_LEN)) {
|
||||
resp_->addOption(rai);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user