diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-06-28 05:51:47 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-06-28 05:51:47 +0000 |
commit | 8fa03df35ff7d60893e433c0de65b044758e22b6 (patch) | |
tree | e4d77e3ea3d91cac5ab3632e6e532b04d78f53f1 | |
parent | 73916d072364530eefc13ae3cf9bc3bcd2a97c66 (diff) | |
download | gnutls-8fa03df35ff7d60893e433c0de65b044758e22b6.tar.gz |
Corrected a null pointer dereference in gnutls_certificate_get_ours(). Report and Patch by Steve Langasek.
-rw-r--r-- | lib/gnutls_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_ui.c b/lib/gnutls_ui.c index d2816e4a9e..814d3f1463 100644 --- a/lib/gnutls_ui.c +++ b/lib/gnutls_ui.c @@ -201,7 +201,7 @@ const gnutls_datum *gnutls_certificate_get_ours(gnutls_session session) CHECK_AUTH(GNUTLS_CRD_CERTIFICATE, NULL); cred = _gnutls_get_cred(session->key, GNUTLS_CRD_CERTIFICATE, NULL); - if (cred == NULL) { + if (cred == NULL || cred->cert_list == NULL) { gnutls_assert(); return NULL; } |