[git] GnuPG - branch, master, updated. gnupg-2.2.7-250-ga3a5a24

by Werner Koch cvs at cvs.gnupg.org
Mon Nov 5 09:01:48 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  a3a5a2451924640588e5ecc03a1d4ba6a6ba94a5 (commit)
      from  8e84efbe35633275e260712ba38a505e3f9d0898 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3a5a2451924640588e5ecc03a1d4ba6a6ba94a5
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Nov 5 08:59:13 2018 +0100

    dirmngr: Fix LDAP port parsing.
    
    * dirmngr/misc.c (host_and_port_from_url): Fix bad port parsing and a
    segv for a missing slash after the host name.
    --
    
    Reportted-by: Tomas Mraz
    GnuPG-bug-id: 4230
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/dirmngr/misc.c b/dirmngr/misc.c
index 9ad60d5..9cedf91 100644
--- a/dirmngr/misc.c
+++ b/dirmngr/misc.c
@@ -515,7 +515,7 @@ host_and_port_from_url (const char *url, int *port)
   if ((p = strchr (buf, '/')))
     *p++ = 0;
   strlwr (buf);
-  if ((p = strchr (p, ':')))
+  if ((p = strchr (buf, ':')))
     {
       *p++ = 0;
       *port = atoi (p);

-----------------------------------------------------------------------

Summary of changes:
 dirmngr/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list