diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-19 07:39:44 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-19 07:39:44 +0100 |
commit | 036bd765a4db40dd01cdd97140ce9b7ea55575aa (patch) | |
tree | e7ca8eb0967f9ed9213ea3d7eb245c1131b96f50 | |
parent | 528d2bbf1cf564fe974570e8679397777913380e (diff) | |
download | gnutls-036bd765a4db40dd01cdd97140ce9b7ea55575aa.tar.gz |
Corrected check for present constraints in unsupported types.
-rw-r--r-- | lib/x509/name_constraints.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/x509/name_constraints.c b/lib/x509/name_constraints.c index e9763db772..dd07e6fe9d 100644 --- a/lib/x509/name_constraints.c +++ b/lib/x509/name_constraints.c @@ -507,10 +507,12 @@ gnutls_datum_t rname; i = 0; do { ret = gnutls_x509_name_constraints_get_excluded(nc, i++, &rtype, &rname); - if (ret >= 0 && rtype != type) - continue; - - return gnutls_assert_val(0); + if (ret >= 0) { + if (rtype != type) + continue; + else + return gnutls_assert_val(0); + } } while(ret == 0); |