diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-22 09:15:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-22 09:15:32 +0100 |
commit | 648b2e815a999bccb8230f3ae5fd90ba4a008cb5 (patch) | |
tree | 94899f6b1dd0d6210dd5803ee48e7e26cfedd90a | |
parent | 541a372f84039dd3b1e1679faba2c62feb2cabc8 (diff) | |
download | gnutls-648b2e815a999bccb8230f3ae5fd90ba4a008cb5.tar.gz |
nettle/pk: added error checking in _rsa_params_to_pubkey
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/nettle/pk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 56c016346b..368598bea6 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -2021,7 +2021,9 @@ static int wrap_nettle_hash_algorithm(gnutls_pk_algorithm_t pk, break; } - _rsa_params_to_pubkey(issuer_params, &pub); + ret = _rsa_params_to_pubkey(issuer_params, &pub); + if (ret < 0) + return gnutls_assert_val(ret); digest_size = sizeof(digest); |