Make sure we have a context before we try and use it.
2001-04-22 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Make sure we have a context before we try and use it. svn path=/trunk/; revision=9496
This commit is contained in:
committed by
Jeffrey Stedfast
parent
c467d07a94
commit
b0795401c7
@ -1,3 +1,8 @@
|
||||
2001-04-22 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Make sure we
|
||||
have a context before we try and use it.
|
||||
|
||||
2001-04-22 Gediminas Paulauskas <menesis@delfi.lt>
|
||||
|
||||
* folder-browser.c, mail-autofilter.c, mail-callbacks.c, mail-ops.c,
|
||||
|
||||
@ -139,8 +139,11 @@ mail_crypto_pgp_mime_part_sign (CamelMimePart **mime_part, const char *userid, C
|
||||
|
||||
context = camel_pgp_context_new (session, mail_config_get_pgp_type (),
|
||||
mail_config_get_pgp_path ());
|
||||
camel_pgp_mime_part_sign (context, mime_part, userid, hash, ex);
|
||||
camel_object_unref (CAMEL_OBJECT (context));
|
||||
|
||||
if (context) {
|
||||
camel_pgp_mime_part_sign (context, mime_part, userid, hash, ex);
|
||||
camel_object_unref (CAMEL_OBJECT (context));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user