From ffa7472db551f12f66b9789c31fabb5fc80cc13a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Aug 2013 10:30:27 +0200 Subject: [PATCH] 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 --- common/dns-cert.c | 9 +++++---- 1 file 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;