[Pkg-gnupg-commit] [gnupg2] 76/132: g10: Fix parse_ring_trust.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:44 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 256e861bce3dc9aba8fab4df47a40cae3bede175
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Apr 17 09:33:19 2017 +0900

    g10: Fix parse_ring_trust.
    
    * g10/parse-packet.c (parse_ring_trust): Fix condition.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 g10/parse-packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 2be9849..fa44f83 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2948,7 +2948,7 @@ parse_ring_trust (parse_packet_ctx_t ctx, unsigned long pktlen)
       if (namelen && pktlen)
         {
           rt.url = xtrymalloc (namelen + 1);
-          if (rt.url)
+          if (!rt.url)
             {
               err = gpg_error_from_syserror ();
               goto leave;

-- 
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