summaryrefslogtreecommitdiff
path: root/lib/x509/crq.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-20 14:03:40 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-02-20 18:52:17 +0100
commit944638f77c919baa4c06c8c2ced99dd3e2821514 (patch)
tree419003815e5f25ca818fbbdd26bac1161880084d /lib/x509/crq.c
parentaa78a8c916d62a92d36be861e0433f00452688aa (diff)
downloadgnutls-944638f77c919baa4c06c8c2ced99dd3e2821514.tar.gz
eliminated various clang warnings with non-null arguments
That is, use assert() to ensure that known to be non-null variables will be used as input to functions requiring non-null. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
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,