From 8fb4edc4ff59fca5dba590f567ffa559bf28522e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 1 Sep 2009 16:20:45 +0200 Subject: handle plugin loading failures --- src/scepclient/scepclient.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/scepclient/scepclient.c') diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c index e01997ce6..f2b49f256 100644 --- a/src/scepclient/scepclient.c +++ b/src/scepclient/scepclient.c @@ -759,8 +759,11 @@ int main(int argc, char **argv) init_log("scepclient"); /* load plugins, further infrastructure may need it */ - lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, - lib->settings->get_str(lib->settings, "scepclient.load", PLUGINS)); + if (!lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, + lib->settings->get_str(lib->settings, "scepclient.load", PLUGINS))) + { + exit_scepclient("plugin loading failed"); + } print_plugins(); if ((filetype_out == 0) && (!request_ca_certificate)) -- cgit v1.2.3