diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-15 10:06:21 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-02-15 10:09:04 +0100 |
commit | ad6095ed9bb3bd5ffdb76509b40f701216b6f580 (patch) | |
tree | 8f7c5094bb40ddeb3dc3977fb707bc418b0b71c0 | |
parent | f79bbce9b3c9929d5b30a55b3795980313ce8c8e (diff) | |
download | gnutls-ad6095ed9bb3bd5ffdb76509b40f701216b6f580.tar.gz |
Corrected bug in gnutls_pcert_list_import_x509_raw().
The bug caused gnutls_pcert_list_import_x509_raw() to crash if
gnutls_x509_crt_list_import() would fail with the provided data.
Reported by Dmitriy Anisimkov.
Conflicts:
lib/gnutls_pcert.c
-rw-r--r-- | lib/gnutls_pcert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_pcert.c b/lib/gnutls_pcert.c index 433a7c6785..5ea716de54 100644 --- a/lib/gnutls_pcert.c +++ b/lib/gnutls_pcert.c @@ -123,7 +123,7 @@ gnutls_x509_crt_t *crt; if (ret < 0) { ret = gnutls_assert_val(ret); - goto cleanup; + goto cleanup_crt; } for (i=0;i<*pcert_max;i++) @@ -147,9 +147,9 @@ cleanup: for (i=0;i<*pcert_max;i++) gnutls_x509_crt_deinit(crt[i]); +cleanup_crt: gnutls_free(crt); return ret; - } /** |