summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2017-02-07 11:22:33 +0100
committerDave Barach <openvpp@barachs.net>2017-02-07 21:41:32 +0000
commite4ad8cce6cf6e5d50b0ec101a4f5ab5d510ad374 (patch)
tree43e28edcc3cc5ec8a502ea5543cd5fc4876f7e79
parent78edb8e722fe2bb72ba7f8e63b420733c7fb51c6 (diff)
VPP-630: Null pointer dereferences in vlib/unix/plugin.c
Change-Id: Iafb071c684a43e21925e3a43019cd86372347898 Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/vlib/unix/plugin.c2
1 files changed, 1 insertions, 1 deletions
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 *) &reg->version,
sizeof (reg->version));
- if (reg && reg->early_init)
+ if (reg->early_init)
{
clib_error_t *(*ei) (vlib_main_t *);
void *h;