diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 13:58:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 13:58:05 +0200 |
commit | 86ff57e8f9f5f33d820b64b5cfdc60cb830b6d94 (patch) | |
tree | 855039c1ffdca5afd75af0021b592869517d7a34 /lib/verify-tofu.c | |
parent | 83b64980f5ec9c3110cf0cd44d8815271ece7996 (diff) | |
download | gnutls-86ff57e8f9f5f33d820b64b5cfdc60cb830b6d94.tar.gz |
several bug fixes due to coverity.
Diffstat (limited to 'lib/verify-tofu.c')
-rw-r--r-- | lib/verify-tofu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c index bdb88c238d..92894ea888 100644 --- a/lib/verify-tofu.c +++ b/lib/verify-tofu.c @@ -375,7 +375,7 @@ static int raw_pubkey_to_base64(const gnutls_datum_t * raw, char *out; ret = base64_encode_alloc((void *) raw->data, raw->size, &out); - if (ret == 0) + if (ret == 0 || out == NULL) return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR); b64->data = (void *) out; |