Check if num is 0 before trying to malloc memory. Otherwise for client hellos without...
[oweals/openssl.git] / doc / man3 / SSL_CTX_set_client_hello_cb.pod
index 6824b5b8d1a4c36b36d07b9dccda73c76c82bdd3..585127db1bc9d399f862c6a7aa88b1cef9fb873d 100644 (file)
@@ -65,6 +65,8 @@ both required, and on success the caller must release the storage allocated for
 B<*out> using OPENSSL_free().  The contents of B<*out> is an array of integers
 holding the numerical value of the TLS extension types in the order they appear
 in the ClientHello.  B<*outlen> contains the number of elements in the array.
+In situations when the ClientHello has no extensions, the function will return
+success with B<*out> set to NULL and B<*outlen> set to 0.
 
 =head1 NOTES