Previously, when caIssuer URI is not present in the certificate's AIA
extension, the callback successfully returned 0, but didn't initialize
the output arguments, resulting in a segmentation fault in the caller.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
fprintf(stderr,
"*** Cannot find caIssuer URI in certificate: %s\n",
gnutls_strerror(ret));
+
+ /* Initialize the output arguments as we are not
+ * treating this as error.
+ */
+ *issuers = NULL;
+ *issuers_size = 0;
return 0;
}