gpg: Fix DNS cert lookup returning an URL.

* g10/call-dirmngr.c (dns_cert_status_cb): Store URL status in the URL
param.  The old code was entirely buggy (c+p error).
--

Fixes-commit: 154f3ed2
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-01-06 16:39:04 +01:00
parent 2c3e67430d
commit a41638acf4
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 3 deletions

View File

@ -1080,10 +1080,8 @@ dns_cert_status_cb (void *opaque, const char *line)
{
if (parm->url)
err = gpg_error (GPG_ERR_DUP_KEY);
else if (!(parm->fpr = xtrymalloc (nbytes)))
else if (!(parm->url = xtrystrdup (s)))
err = gpg_error_from_syserror ();
else
memcpy (parm->fpr, line, (parm->fprlen = nbytes));
}
return err;