diff options
author | Pavel Kotucek <pkotucek@cisco.com> | 2017-03-10 10:03:59 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-03-10 11:32:24 +0000 |
commit | 78053e164fbb75c014126a3deff440f165504582 (patch) | |
tree | 441cbb7e9caecfe3227297ae9e4929a78881a615 /src/vnet/ipsec/ipsec_api.c | |
parent | b69259a55d6ae4a0133eaa725edfea246d905f8b (diff) |
Fix coverity CIDs 161048, 163895
Change-Id: Ic206601413bb366e2a920daf00524e92a47287ef
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_api.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec_api.c b/src/vnet/ipsec/ipsec_api.c index e37bccee..9c4ba526 100644 --- a/src/vnet/ipsec/ipsec_api.c +++ b/src/vnet/ipsec/ipsec_api.c @@ -209,8 +209,7 @@ static void vl_api_ipsec_sad_add_del_entry_t_handler sa.crypto_key_len = mp->crypto_key_length; clib_memcpy (&sa.crypto_key, mp->crypto_key, sizeof (sa.crypto_key)); /* check for unsupported integ-alg */ - if (mp->integrity_algorithm < IPSEC_INTEG_ALG_NONE || - mp->integrity_algorithm >= IPSEC_INTEG_N_ALG) + if (mp->integrity_algorithm >= IPSEC_INTEG_N_ALG) { clib_warning ("unsupported integ-alg: '%U'", format_ipsec_integ_alg, mp->integrity_algorithm); |