1
0
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:
Werner Koch 2014-02-10 20:14:14 +01:00
parent 7901c5c2a3
commit 672f4aeba8

View File

@ -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