mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Avoid segv if dns cert lookup is not configured.
* common/dns-cert.c (get_dns_cert) [!USE_DNS_CERT]: Reset return args.
This commit is contained in:
parent
7901c5c2a3
commit
672f4aeba8
@ -360,10 +360,10 @@ get_dns_cert (const char *name, estream_t *r_key,
|
|||||||
#endif /*!USE_ADNS */
|
#endif /*!USE_ADNS */
|
||||||
#else /* !USE_DNS_CERT */
|
#else /* !USE_DNS_CERT */
|
||||||
(void)name;
|
(void)name;
|
||||||
(void)r_key;
|
*r_key = NULL;
|
||||||
(void)r_fpr;
|
*r_fpr = NULL;
|
||||||
(void)r_fprlen;
|
*r_fprlen = 0;
|
||||||
(void)r_url;
|
*r_url = NULL;
|
||||||
|
|
||||||
return gpg_err_make (default_errsource, GPG_ERR_NOT_SUPPORTED);
|
return gpg_err_make (default_errsource, GPG_ERR_NOT_SUPPORTED);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user