summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trust/token.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trust/token.c b/trust/token.c
index 15ca018..1ed26eb 100644
--- a/trust/token.c
+++ b/trust/token.c
@@ -301,10 +301,10 @@ loader_load_path (p11_token *token,
if (errno != ENOENT)
p11_message_err (errno, "cannot access trust certificate path: %s", path);
loader_gone_file (token, path);
- return 0;
- }
+ *is_dir = false;
+ ret = 0;
- if (S_ISDIR (sb.st_mode)) {
+ } else if (S_ISDIR (sb.st_mode)) {
*is_dir = true;
ret = 0;