diff options
author | Florin Coras <fcoras@cisco.com> | 2017-02-28 04:13:21 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-03-02 12:18:13 +0000 |
commit | 443312bb41bde74e5907db35322877a9f103f2c4 (patch) | |
tree | f5b3cbd3f90d96a98a7e4ba58d20464c113592ff /src/vnet/lisp-gpe | |
parent | 614c13161815c2de21c4679cb217da1ebc4fdb76 (diff) |
Fix LISP Coverity warning
Change-Id: Id1c3832609859ed004bacba0ced0d07dafd6c409
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe')
-rw-r--r-- | src/vnet/lisp-gpe/decap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/lisp-gpe/decap.c b/src/vnet/lisp-gpe/decap.c index 9c5234e7182..50bfa4938db 100644 --- a/src/vnet/lisp-gpe/decap.c +++ b/src/vnet/lisp-gpe/decap.c @@ -68,7 +68,7 @@ next_protocol_to_next_index (lisp_gpe_header_t * lgh, u8 * next_header) if (PREDICT_TRUE ((lgh->flags & LISP_GPE_FLAGS_P) || GPE_ENCAP_VXLAN == lgm->encap_mode)) { - if (PREDICT_FALSE (lgh->next_protocol > LISP_GPE_NEXT_PROTOS)) + if (PREDICT_FALSE (lgh->next_protocol >= LISP_GPE_NEXT_PROTOS)) return LISP_GPE_INPUT_NEXT_DROP; return next_proto_to_next_index[lgh->next_protocol]; |