summaryrefslogtreecommitdiffstats
path: root/src/vat/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vat/plugin.c')
-rw-r--r--src/vat/plugin.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vat/plugin.c b/src/vat/plugin.c
index 20de8c50b6f..b94c4fc30d0 100644
--- a/src/vat/plugin.c
+++ b/src/vat/plugin.c
@@ -40,14 +40,19 @@ load_one_plugin (plugin_main_t * pm, plugin_info_t * pi)
if (handle == 0)
{
clib_warning ("%s", dlerror ());
- return -1;
+ return 0;
}
pi->handle = handle;
register_handle = dlsym (pi->handle, "vat_plugin_register");
if (register_handle == 0)
- return 0;
+ {
+ clib_warning ("%s: symbol vat_plugin_register not found", pi->name);
+ dlclose (handle);
+ return 0;
+ }
+
fp = register_handle;