diff options
Diffstat (limited to 'trust')
-rw-r--r-- | trust/token.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/trust/token.c b/trust/token.c index 030c17b..b91a1d0 100644 --- a/trust/token.c +++ b/trust/token.c @@ -377,16 +377,19 @@ p11_token_load (p11_token *token) int ret; ret = loader_load_path (token, token->path, &is_dir); - return_val_if_fail (ret >= 0, -1); + if (ret < 0) + return -1; total += ret; if (is_dir) { ret = loader_load_path (token, token->anchors, &is_dir); - return_val_if_fail (ret >= 0, -1); + if (ret < 0) + return -1; total += ret; ret = loader_load_path (token, token->blacklist, &is_dir); - return_val_if_fail (ret >= 0, -1); + if (ret < 0) + return -1; total += ret; } |