Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
96b41f7
)
ip_frag: fix implicit enum conversion
55/3755/2
author
Damjan Marion
<
[email protected]
>
Wed, 9 Nov 2016 23:41:13 +0000
(
00:41
+0100)
committer
Dave Barach
<
[email protected]
>
Thu, 10 Nov 2016 21:45:39 +0000
(21:45 +0000)
Change-Id: I024b8d79cced45cf53a7a912319eca2cc932b10e
Signed-off-by: Damjan Marion <
[email protected]
>
vnet/vnet/ip/ip_frag.c
patch
|
blob
|
history
diff --git
a/vnet/vnet/ip/ip_frag.c
b/vnet/vnet/ip/ip_frag.c
index
38befc2
..
8aa21a0
100644
(file)
--- 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 = IP
6_ERROR_TOO_SHORT
;
+ *error = IP
_FRAG_ERROR_MALFORMED
;
return;
}