diff options
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/id-ff/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lasso/id-ff/server.c b/lasso/id-ff/server.c index 0188817b..de30ae3f 100644 --- a/lasso/id-ff/server.c +++ b/lasso/id-ff/server.c @@ -544,6 +544,9 @@ lasso_server_get_first_providerID(LassoServer *server) LassoProvider* lasso_server_get_provider(LassoServer *server, const gchar *providerID) { + if (! LASSO_IS_SERVER(server) || providerID == NULL || strlen(providerID) == 0) { + return NULL; + } return g_hash_table_lookup(server->providers, providerID); } |