diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-17 16:48:36 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-17 16:48:36 +0200 |
commit | 1daa267ee77c2ba330b74242aba6df272c36171f (patch) | |
tree | 0985cfc00d41d7eaf0ccff795917a1c274bb760e /lib | |
parent | aa68821a7e149a7a62d15a1096c079293d808e71 (diff) | |
download | gnutls-1daa267ee77c2ba330b74242aba6df272c36171f.tar.gz |
ensure that gnutls_pubkey_verify_data2 returns 0 on success
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_pubkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c index 74a9802b15..cd6e94414a 100644 --- a/lib/gnutls_pubkey.c +++ b/lib/gnutls_pubkey.c @@ -1636,6 +1636,8 @@ gnutls_pubkey_verify_data2(gnutls_pubkey_t pubkey, } } + if (ret >= 0) + return 0; return ret; } |