mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
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:
parent
2c3e67430d
commit
a41638acf4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user