From e4ad8cce6cf6e5d50b0ec101a4f5ab5d510ad374 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 7 Feb 2017 11:22:33 +0100 Subject: VPP-630: Null pointer dereferences in vlib/unix/plugin.c Change-Id: Iafb071c684a43e21925e3a43019cd86372347898 Signed-off-by: Ole Troan --- src/vlib/unix/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vlib') diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c index 4aba95c863e..15a2bcbbd5c 100644 --- a/src/vlib/unix/plugin.c +++ b/src/vlib/unix/plugin.c @@ -163,7 +163,7 @@ load_one_plugin (plugin_main_t * pm, plugin_info_t * pi, int from_early_init) pi->version = str_array_to_vec ((char *) ®->version, sizeof (reg->version)); - if (reg && reg->early_init) + if (reg->early_init) { clib_error_t *(*ei) (vlib_main_t *); void *h; -- cgit 1.2.3-korg