summaryrefslogtreecommitdiff
path: root/lib/x509/x509_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/x509_write.c')
-rw-r--r--lib/x509/x509_write.c2
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;