]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-IKEv2: Try to make transform parser simpler to understand
authorJouni Malinen <jouni@codeaurora.org>
Tue, 3 Nov 2020 18:11:17 +0000 (20:11 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 3 Nov 2020 19:03:30 +0000 (21:03 +0200)
commitc42d41bf35cb205388adc0736e332057562f6f4b
tree070608046dbc48916c0e6b5ff43bf397aa9acb8f
parentec0d99c00e92505a1dff1c26516b8cb1cd389d87
EAP-IKEv2: Try to make transform parser simpler to understand

Use a local variable to try to make ikev2_parse_proposal() easier for
static analyzers to understand. Bounds checking in the loop is really
done by the ikev2_parse_transform() function, so the p->num_transforms
value itself is of no importance for that part and even that was already
implicitly limited in range.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/eap_peer/ikev2.c