aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-04-17 00:33:19 +0000
committerNIIBE Yutaka <[email protected]>2017-04-17 00:33:19 +0000
commit256e861bce3dc9aba8fab4df47a40cae3bede175 (patch)
tree340c13bcf2b03505f5ff62d87c0b3add39668da3 /g10/parse-packet.c
parentg10: Minor fixes. (diff)
downloadgnupg-256e861bce3dc9aba8fab4df47a40cae3bede175.tar.gz
gnupg-256e861bce3dc9aba8fab4df47a40cae3bede175.zip
g10: Fix parse_ring_trust.
* g10/parse-packet.c (parse_ring_trust): Fix condition. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 2be984993..fa44f8389 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;