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:
parent
0dec0cc281
commit
256e861bce
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user