diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-03-06 14:30:19 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-03-06 14:36:24 +0100 |
commit | e579ba43201dbb54a015265e1730e755a2dfd60e (patch) | |
tree | 9002399902069ff82cfd130eef79a73ddb66f549 | |
parent | ec8ebb0032327c599486a60e87323844bffa13e4 (diff) | |
download | gnutls-e579ba43201dbb54a015265e1730e755a2dfd60e.tar.gz |
_gnutls_proc_x509_server_crt: return GNUTLS_E_CERTIFICATE_ERROR on parsing error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/auth/cert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/auth/cert.c b/lib/auth/cert.c index eefeb892b9..e8bb1a662a 100644 --- a/lib/auth/cert.c +++ b/lib/auth/cert.c @@ -1073,6 +1073,7 @@ _gnutls_proc_x509_server_crt(gnutls_session_t session, if (ret < 0) { gnutls_assert(); peer_certificate_list_size = j; + ret = GNUTLS_E_CERTIFICATE_ERROR; goto cleanup; } |