From 276e401c427dc0700c2cc9ecd8017cc052e54cfd 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. --- gpgme/ChangeLog | 5 +++++ gpgme/verify.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 09c56ac..44bcc31 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/verify.c b/gpgme/verify.c index be2067c..fe99aa9 100644 --- a/gpgme/verify.c +++ b/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