challenger

OAuth 2.0-based authentication service that validates user can receive messages at a certain address
Log | Files | Refs | Submodules | README | LICENSE

commit 8db2dd8fdfe7167f3d40a69a333aebac4fbde96d
parent 72f3ad40d19ffaaee7ab296b2f6be8f0b17ede5d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  8 Dec 2024 22:20:15 +0100

-fix NPE

Diffstat:
Msrc/challengerdb/challenger_db_plugin.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/challengerdb/challenger_db_plugin.c b/src/challengerdb/challenger_db_plugin.c @@ -51,10 +51,12 @@ CHALLENGER_DB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg, plugin = GNUNET_PLUGIN_load (CHALLENGER_project_data (), 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; if ( (! skip_preflight) && (GNUNET_OK != plugin->preflight (plugin->cls)) )