Commit 634008c2 authored by Daiki Ueno's avatar Daiki Ueno

login: Don't assume error if there is no matching token

gck_modules_token_for_uri() could return NULL without setting error if
there is no matching token.
parent 7d138096
......@@ -92,7 +92,10 @@ lookup_login_session (GList *modules)
slot = gck_modules_token_for_uri (modules, "pkcs11:token=Secret%20Store", &error);
if (!slot) {
g_warning ("couldn't find secret store module: %s", egg_error_message (error));
if (error) {
g_warning ("couldn't find secret store module: %s", egg_error_message (error));
g_error_free (error);
}
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment