diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-12-16 15:51:38 +0100 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 07:43:14 +0000 |
commit | 6051aa49249c9aba741b8492458771bce5e66100 (patch) | |
tree | f68891c3d1cc9a0f05553c3d81a1f12596760b87 /src/vnet | |
parent | f7b581260fd4fb301ad1a9c9142b38d25face912 (diff) |
l2: fix l2input_feat_names overflow
Type: fix
Change-Id: I59549b3aab5a0ccfe7db02757f78528e028121a5
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 70ef0faea9f706004c068fb843797a7cb08a9e68)
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/l2/l2_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/l2/l2_input.c b/src/vnet/l2/l2_input.c index 4efb5562806..7b93fba20b1 100644 --- a/src/vnet/l2/l2_input.c +++ b/src/vnet/l2/l2_input.c @@ -83,7 +83,7 @@ format_l2_input_features (u8 * s, va_list * args) feature_bitmap &= ~L2INPUT_FEAT_DROP; /* Not a feature */ int i; - for (i = L2INPUT_N_FEAT; i >= 0; i--) + for (i = L2INPUT_N_FEAT - 1; i >= 0; i--) { if (feature_bitmap & (1 << i)) { |