]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
(gnutls_x509_crt_sign2): Check to see if ISSUER_KEY is NULL before
authorSimon Josefsson <simon@josefsson.org>
Sun, 27 Aug 2006 13:50:05 +0000 (13:50 +0000)
committerSimon Josefsson <simon@josefsson.org>
Sun, 27 Aug 2006 13:50:05 +0000 (13:50 +0000)
continuing, based on report from Sascha Ziemann
<sascha.ziemann@secunet.com>.

lib/x509/x509_write.c

index 3708160b56001f35abf1e143c39c5fbd399c4701..056f7c9c77e346f038feabe94c420c674658f9e8 100644 (file)
@@ -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;