diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-08-27 14:39:37 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-08-27 14:39:37 +0000 |
commit | f42eb43aae1be7b8726db82ddd70ea96b13ccc85 (patch) | |
tree | e2a275f15433a69697b04462467ee749dde83584 | |
parent | afc8e0c0caea143ee50d7763935014d43e4f1d63 (diff) | |
download | gnutls-f42eb43aae1be7b8726db82ddd70ea96b13ccc85.tar.gz |
(gnutls_x509_crt_sign2): Check to see if ISSUER_KEY is NULL before
continuing, based on report from Sascha Ziemann
<sascha.ziemann@secunet.com>.
-rw-r--r-- | lib/x509/x509_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509_write.c b/lib/x509/x509_write.c index 3708160b56..056f7c9c77 100644 --- a/lib/x509/x509_write.c +++ b/lib/x509/x509_write.c @@ -463,7 +463,7 @@ gnutls_x509_crt_sign2 (gnutls_x509_crt_t crt, gnutls_x509_crt_t issuer, { int result; - if (crt == NULL || issuer == NULL) + if (crt == NULL || issuer == NULL || issuer_key == NULL) { gnutls_assert (); return GNUTLS_E_INVALID_REQUEST; |