summaryrefslogtreecommitdiff
path: root/doc/examples/ex-verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/ex-verify.c')
-rw-r--r--doc/examples/ex-verify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/ex-verify.c b/doc/examples/ex-verify.c
index 0aa9922f81..623198793b 100644
--- a/doc/examples/ex-verify.c
+++ b/doc/examples/ex-verify.c
@@ -55,6 +55,7 @@ verify_certificate_chain(const char *hostname,
GNUTLS_TL_VERIFY_CRL, 0));
cert = malloc(sizeof(*cert) * cert_chain_length);
+ assert(cert != NULL);
/* Import all the certificates in the chain to
* native certificate format.