From 681cdd4a0c0bf186b9a0cca012992e8d654fd4ca Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 7 Jan 2009 17:03:51 +0100 Subject: Only load plugins with the same version string --- src/plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/plugin.c b/src/plugin.c index 2103b66e..7fb7d444 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -43,6 +43,9 @@ static gboolean add_plugin(void *handle, struct connman_plugin_desc *desc) if (desc->init == NULL) return FALSE; + if (g_str_equal(desc->version, CONNMAN_VERSION) == FALSE) + return FALSE; + plugin = g_try_new0(struct connman_plugin, 1); if (plugin == NULL) return FALSE; -- cgit v1.2.3