From bb7ea13677f95dce36a68f8388cc19000aa6261b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 13 Jun 2002 08:45:32 +0000 Subject: [PATCH] * verify.c (gpgme_op_verify): Make sure that we never access an unitialized result structure. --- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/verify.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 09c56ac..44bcc31 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-06-13 Werner Koch + + * verify.c (gpgme_op_verify): Make sure that we never access an + unitialized result structure. + 2002-06-12 Werner Koch * keylist.c (struct keylist_result_s): New. diff --git a/trunk/gpgme/verify.c b/trunk/gpgme/verify.c index be2067c..fe99aa9 100644 --- a/trunk/gpgme/verify.c +++ b/trunk/gpgme/verify.c @@ -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; -- 2.26.2