From: Werner Koch Date: Thu, 13 Jun 2002 08:45:32 +0000 (+0000) Subject: * verify.c (gpgme_op_verify): Make sure that we never access an X-Git-Tag: gpgme-1.2.0@1385~951 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb7ea13677f95dce36a68f8388cc19000aa6261b;p=gpgme.git * verify.c (gpgme_op_verify): Make sure that we never access an unitialized result structure. --- 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;