summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-09-30 11:57:04 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-09-30 11:57:04 (GMT)
commit593aee561015251dfd042dc5e00388f63232c45f (patch)
tree6e110d93d439c93e42906cce4c2e7b3aea79f69a /src
parentdb702d1243e6fec187137d48cecb89de17fefc3b (diff)
Checked the ABI version before loading plugins.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/plugin-def.h2
-rw-r--r--src/plugins/plugin.c6
2 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h
index 83b2c9a..e5d06c3 100644
--- a/src/plugins/plugin-def.h
+++ b/src/plugins/plugin-def.h
@@ -31,8 +31,6 @@
-
-
/* ------------------------ IDENTIFICATION DE COMPATIBILITES ------------------------ */
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index cd59ee1..f12c1f6 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -209,15 +209,13 @@ GPluginModule *g_plugin_module_new(const gchar *filename)
current = CURRENT_ABI_VERSION;
- if (0 /* check_version() */)
+ if (current != result->interface->abi_version)
{
-
log_variadic_message(LMT_ERROR,
- _("Bad version... '%s'"),
+ _("ABI mismatch detected! Plugin '%s' rejected"),
filename);
goto bad_plugin;
-
}
/* Localisation des différents points d'entrée déclarés */