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 */
#else /* !USE_DNS_CERT */
(void)name;
(void)r_key;
(void)r_fpr;
(void)r_fprlen;
(void)r_url;
*r_key = NULL;
*r_fpr = NULL;
*r_fprlen = 0;
*r_url = NULL;
return gpg_err_make (default_errsource, GPG_ERR_NOT_SUPPORTED);
#endif