* verify.c (gpgme_op_verify): Make sure that we never access an

unitialized result structure.
This commit is contained in:
Werner Koch 2002-06-13 08:45:32 +00:00
parent 1bd00d0a18
commit 276e401c42
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-13 Werner Koch <wk@gnupg.org>
* verify.c (gpgme_op_verify): Make sure that we never access an
unitialized result structure.
2002-06-12 Werner Koch <wk@gnupg.org>
* keylist.c (struct keylist_result_s): New.

View File

@ -461,7 +461,7 @@ gpgme_op_verify (GpgmeCtx ctx, GpgmeData sig, GpgmeData text,
if (!err)
{
err = _gpgme_wait_one (ctx);
if (!err)
if (!err && ctx->result.verify)
*r_stat = _gpgme_intersect_stati (ctx->result.verify);
}
return err;