summaryrefslogtreecommitdiffstats
path: root/src/vlib/buffer_serialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/buffer_serialize.c')
-rw-r--r--src/vlib/buffer_serialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/buffer_serialize.c b/src/vlib/buffer_serialize.c
index 96a5f0a0da8..48dcce3be90 100644
--- a/src/vlib/buffer_serialize.c
+++ b/src/vlib/buffer_serialize.c
@@ -216,7 +216,7 @@ serialize_close_vlib_buffer (serialize_main_t * m)
{
sm->last_buffer
= vlib_buffer_add_data (sm->vlib_main, sm->tx.free_list_index,
- sm->last_buffer == ~0 ? 0 : sm->last_buffer,
+ sm->last_buffer,
s->overflow_buffer,
vec_len (s->overflow_buffer));
_vec_len (s->overflow_buffer) = 0;