Re: [PATCH] gpg-interface.c: Fix potentially freeing NULL values

2018-08-17 Thread Michał Górny
On Fri, 2018-08-17 at 05:28 -0400, Eric Sunshine wrote: > On Fri, Aug 17, 2018 at 5:17 AM Michał Górny wrote: > > Fix signature_check_clear() to free only values that are non-NULL. This > > especially applies to 'key' and 'signer' members that can be NULL during > > normal operations, depending

Re: [PATCH] gpg-interface.c: Fix potentially freeing NULL values

2018-08-17 Thread Eric Sunshine
On Fri, Aug 17, 2018 at 5:17 AM Michał Górny wrote: > Fix signature_check_clear() to free only values that are non-NULL. This > especially applies to 'key' and 'signer' members that can be NULL during > normal operations, depending on exact GnuPG output. While at it, also > allow other members

[PATCH] gpg-interface.c: Fix potentially freeing NULL values

2018-08-17 Thread Michał Górny
Fix signature_check_clear() to free only values that are non-NULL. This especially applies to 'key' and 'signer' members that can be NULL during normal operations, depending on exact GnuPG output. While at it, also allow other members to be NULL to make the function easier to use, even if there