diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-15 13:48:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-15 13:48:13 +0200 |
commit | 96265412cd15bbf44447139dca2dff1f2f871cbb (patch) | |
tree | a1366370ede8038e55665c9f88bd7ab5dc3ebf5c /src/kyclogic/kyclogic_api.c | |
parent | 39640c33395744bfa3679ea6923b46ef6881e315 (diff) | |
download | exchange-96265412cd15bbf44447139dca2dff1f2f871cbb.tar.xz |
(preliminary) work on kycaid plugin
Diffstat (limited to 'src/kyclogic/kyclogic_api.c')
-rw-r--r-- | src/kyclogic/kyclogic_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c index a77404784..2b4ce0d3b 100644 --- a/src/kyclogic/kyclogic_api.c +++ b/src/kyclogic/kyclogic_api.c @@ -288,10 +288,12 @@ load_logic (const struct GNUNET_CONFIGURATION_Handle *cfg, } plugin = GNUNET_PLUGIN_load (lib_name, (void *) cfg); - if (NULL != plugin) - plugin->library_name = lib_name; - else + if (NULL == plugin) + { GNUNET_free (lib_name); + return NULL; + } + plugin->library_name = lib_name; GNUNET_array_append (kyc_logics, num_kyc_logics, plugin); |