From 72cdf6e6c8194198de60e38a06646e449d0d8a3a Mon Sep 17 00:00:00 2001 From: TAKAHASHI Tamotsu Date: Sun, 1 Apr 2007 15:40:02 -0700 Subject: [PATCH] gpgme: check result for signatures pointer (closes: #2199) --- ChangeLog | 7 ++++++- crypt-gpgme.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28512138..5be6224c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2007-04-01 14:59 -0700 Brendan Cully (c01a36ebe339) +2007-04-01 15:33 -0700 Brendan Cully (3a81b3793f77) + + * doc/muttbug.man: Update flea man page to current addresses + + * muttbug.sh.in: Adjust flea to use new submission address; check + email for @ * doc/muttbug.man, muttbug.sh.in: Restore muttbug diff --git a/crypt-gpgme.c b/crypt-gpgme.c index a64f04af..718b235c 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -766,7 +766,7 @@ static int get_micalg (gpgme_ctx_t ctx, char *buf, size_t buflen) *buf = 0; result = gpgme_op_sign_result (ctx); - if (result) + if (result && result->signatures) { algorithm_name = gpgme_hash_algo_name (result->signatures->hash_algo); if (algorithm_name) -- 2.40.0