From: Ole Troan Date: Tue, 7 Feb 2017 10:22:33 +0000 (+0100) Subject: VPP-630: Null pointer dereferences in vlib/unix/plugin.c X-Git-Tag: v17.04-rc1~246 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e4ad8cce6cf6e5d50b0ec101a4f5ab5d510ad374;p=vpp.git VPP-630: Null pointer dereferences in vlib/unix/plugin.c Change-Id: Iafb071c684a43e21925e3a43019cd86372347898 Signed-off-by: Ole Troan --- 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;