]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
ensure that gnutls_pubkey_verify_data2 returns 0 on success
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 17 Jun 2015 14:48:36 +0000 (16:48 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 17 Jun 2015 14:48:36 +0000 (16:48 +0200)
lib/gnutls_pubkey.c

index 74a9802b157fb677b8cf1096735e5dcefc4e727f..cd6e94414a13bc9c3b904e8e36fb0693d4c5c8c2 100644 (file)
@@ -1636,6 +1636,8 @@ gnutls_pubkey_verify_data2(gnutls_pubkey_t pubkey,
                }
        }
 
+       if (ret >= 0)
+               return 0;
        return ret;
 }