diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-06-07 12:11:30 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-06-10 11:30:24 +0200 |
commit | 3f21d8601ddbb27f443f6a8fdf91ebe715d5cb94 (patch) | |
tree | 3330c81303acf0130dfd82f63a763b772fae7551 /lib/x509/verify-high.c | |
parent | 05ccb42f8eb197ba4f7244bb4a849c5a4ef028f9 (diff) | |
download | gnutls-3f21d8601ddbb27f443f6a8fdf91ebe715d5cb94.tar.gz |
Fix warnings seen on OpenCSW Solaris 10
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r-- | lib/x509/verify-high.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 18906ddc1a..4e2faa5a86 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -347,8 +347,6 @@ static int advance_iter(gnutls_x509_trust_list_t list, gnutls_x509_trust_list_iter_t iter) { - int ret; - if (iter->node_index < list->size) { ++iter->ca_index; @@ -366,7 +364,7 @@ advance_iter(gnutls_x509_trust_list_t list, #ifdef ENABLE_PKCS11 if (list->pkcs11_token != NULL) { if (iter->pkcs11_list == NULL) { - ret = gnutls_pkcs11_obj_list_import_url2(&iter->pkcs11_list, &iter->pkcs11_size, + int ret = gnutls_pkcs11_obj_list_import_url2(&iter->pkcs11_list, &iter->pkcs11_size, list->pkcs11_token, (GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE|GNUTLS_PKCS11_OBJ_FLAG_CRT|GNUTLS_PKCS11_OBJ_FLAG_MARK_CA|GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED), 0); if (ret < 0) return gnutls_assert_val(ret); |