aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-11-10 00:41:13 +0100
committerDave Barach <openvpp@barachs.net>2016-11-10 21:45:39 +0000
commit9db551cf50da13bf82d3a735ea6b56912a97d5c6 (patch)
tree167f1a2ea8c1710ba58d09f68abe5ab33c8f0f26 /vnet
parent96b41f76097de4516251a43cef365641dd8760a4 (diff)
ip_frag: fix implicit enum conversion
Change-Id: I024b8d79cced45cf53a7a912319eca2cc932b10e Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ip/ip_frag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/ip/ip_frag.c b/vnet/vnet/ip/ip_frag.c
index 38befc2b2ea..8aa21a023d2 100644
--- a/vnet/vnet/ip/ip_frag.c
+++ b/vnet/vnet/ip/ip_frag.c
@@ -277,7 +277,7 @@ ip6_frag_do_fragment(vlib_main_t *vm, u32 pi, u32 **buffer, ip_frag_error_t *err
if (PREDICT_FALSE(payload >= (u8 *)vlib_buffer_get_current(p) + p->current_length)) {
//A malicious packet could set an extension header with a too big size
//and make us modify another vlib_buffer
- *error = IP6_ERROR_TOO_SHORT;
+ *error = IP_FRAG_ERROR_MALFORMED;
return;
}