summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/node.c b/src/vlib/node.c
index 13889d13ca0..25e249bdda9 100644
--- a/src/vlib/node.c
+++ b/src/vlib/node.c
@@ -478,6 +478,8 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
if (vec_len (n->runtime_data) > 0)
clib_memcpy (rt->runtime_data, n->runtime_data,
vec_len (n->runtime_data));
+ else
+ clib_memset (rt->runtime_data, 0, VLIB_NODE_RUNTIME_DATA_SIZE);
vec_free (n->runtime_data);
}