ike-config: If we don't send a CFG_REQUEST, we don't expect a CFG_REPLY

Previously, attributes in an incorrectly sent CFG_REPLY would still be passed
to attribute handlers.  This does not prevent handlers from receiving
unrequested attributes if they requested at least one other.
This commit is contained in:
Tobias Brunner 2019-03-29 11:05:42 +01:00
parent b5ac0bd35f
commit 5af924a650
1 changed files with 4 additions and 0 deletions

View File

@ -317,6 +317,10 @@ METHOD(task_t, build_i, status_t,
{
message->add_payload(message, (payload_t*)cp);
}
else
{ /* we don't expect a CFG_REPLY */
return SUCCESS;
}
}
return NEED_MORE;
}