aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-08-01 08:30:27 +0000
committerWerner Koch <[email protected]>2013-08-01 08:30:27 +0000
commitffa7472db551f12f66b9789c31fabb5fc80cc13a (patch)
tree2d26dc8f055821988c48e371bbfda3e4d07b1046
parentcommon: Comment out unused code. (diff)
downloadgnupg-ffa7472db551f12f66b9789c31fabb5fc80cc13a.tar.gz
gnupg-ffa7472db551f12f66b9789c31fabb5fc80cc13a.zip
common: Fix a build error when using adns.
* common/dns-cert.c (get_dns_cert) [USE_ADNS]: Fix synatx error. -- (fixes commit 31f548a18aed729c05ea367f2d8a8104480430d5) Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--common/dns-cert.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/dns-cert.c b/common/dns-cert.c
index 114e61d9b..dca15b19d 100644
--- a/common/dns-cert.c
+++ b/common/dns-cert.c
@@ -148,7 +148,7 @@ get_dns_cert (const char *name, estream_t *r_key,
goto leave;
}
else if (ctype == CERTTYPE_IPGP && datalen && datalen < 1023
- && datalen >= data[0] + 1 && fpr && fpr_len && url)
+ && datalen >= data[0] + 1 && r_fpr && r_fprlen && r_url)
{
/* CERT type is IPGP. We made sure that the data is
plausible and that the caller requested this
@@ -170,7 +170,7 @@ get_dns_cert (const char *name, estream_t *r_key,
if (datalen > *r_fprlen + 1)
{
- *url = xtrymalloc (datalen - (*r_fprlen + 1) + 1);
+ *r_url = xtrymalloc (datalen - (*r_fprlen + 1) + 1);
if (!*r_url)
{
err = gpg_err_make (default_errsource,
@@ -179,8 +179,9 @@ get_dns_cert (const char *name, estream_t *r_key,
*r_fpr = NULL;
goto leave;
}
- memcpy (*url, data + (*r_fprlen + 1), datalen - (*r_fprlen + 1));
- (*url)[datalen - (*r_fprlen + 1)] = '\0';
+ memcpy (*r_url,
+ data + (*r_fprlen + 1), datalen - (*r_fprlen + 1));
+ (*r_url)[datalen - (*r_fprlen + 1)] = '\0';
}
else
*r_url = NULL;