diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-07-09 13:50:35 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-09 14:32:19 +0000 |
commit | 3f5ebed6ea3a024b7396afe81f895719a8286681 (patch) | |
tree | 0e6bb672366cb1c659ece8e60d39d9275bde6ec7 /src/plugins/ikev2/ikev2_msg_enum.h | |
parent | 57783efb822699ee5acc637580ca855fb9b7e4cc (diff) |
fib: fix urpf_itfs vector overflow
When removing duplicates in urpf_itfs vector we search for the 1st next
different entry in the vector, but the loop test is in the wrong order:
(urpf->furpf_itfs[i] == urpf->furpf_itfs[j]
&& j < vec_len(urpf->furpf_itfs))
We must check for overflow before checking equality.
Type: fix
Fixes: 3ee44040c66cbe47ff292ac7fb0badccbe2afe6d
Change-Id: I63729aff12057d5abce6c24ec24339cd9cd79494
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2_msg_enum.h')
0 files changed, 0 insertions, 0 deletions