1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

g10: Fix parse_ring_trust.

* g10/parse-packet.c (parse_ring_trust): Fix condition.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2017-04-17 09:33:19 +09:00
parent 0dec0cc281
commit 256e861bce

View File

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