diff options
author | Stef Walter <stef@thewalter.net> | 2014-08-08 17:20:30 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-08-08 18:44:20 +0200 |
commit | 4750c617829b666dd1acb2a12ca61419fa12bc26 (patch) | |
tree | 2f7485781f51bdbb90b9535c40ee4f0d789dcb93 | |
parent | a35cc9be7a34e4fd012b0fa25a7091acf044a038 (diff) |
trust: Fix unlikely use of uninitialized memory in token loading
-rw-r--r-- | trust/token.c | 6 |
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; |