From: Simon Josefsson Date: Sun, 27 Aug 2006 13:50:05 +0000 (+0000) Subject: (gnutls_x509_crt_sign2): Check to see if ISSUER_KEY is NULL before X-Git-Tag: gnutls_1_5_1~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dcd7e95ab9c382f780e5399b1fb136c4c7dfd8a;p=thirdparty%2Fgnutls.git (gnutls_x509_crt_sign2): Check to see if ISSUER_KEY is NULL before continuing, based on report from Sascha Ziemann . --- 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;