summaryrefslogtreecommitdiff
path: root/lib/x509/crq.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/crq.c')
-rw-r--r--lib/x509/crq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index 936e122519..af0ecf8264 100644
--- a/lib/x509/crq.c
+++ b/lib/x509/crq.c
@@ -1099,6 +1099,8 @@ gnutls_x509_crq_set_challenge_password(gnutls_x509_crq_t crq,
password = (char*)out.data;
}
+ assert(password != NULL);
+
result = _gnutls_x509_encode_and_write_attribute
("1.2.840.113549.1.9.7", crq->crq,
"certificationRequestInfo.attributes.?LAST", password,