[Pkg-gnupg-commit] [gnupg2] 89/159: gpg: Fix DNS cert lookup returning an URL.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 27 13:23:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit a41638acf4808caa619f4f3f4c0dcd12be00d6f8
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Jan 6 16:39:04 2016 +0100

    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 at gnupg.org>
---
 g10/call-dirmngr.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/g10/call-dirmngr.c b/g10/call-dirmngr.c
index 83af0be..b1c856d 100644
--- a/g10/call-dirmngr.c
+++ b/g10/call-dirmngr.c
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list