[PATCH] crypto: return NULL cryptoctx if protocol string is empty.

Jameson Graef Rollins jrollins at finestructure.net
Fri Jul 19 08:57:52 PDT 2013


On Fri, Jul 19 2013, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> Badly formed messages that don't specify a protocol in
> signed/encrypted parts, end up with a protocol of NULL.  strcasecmp in
> notmuch_crypto_get_context then segfaults when trying to check it
> against known protocols.  If the protocol is NULL, just return an
> empty context immediately (with appropriate message.)

Fixes bug reported in id:87mwpiu4vi.fsf at zancas.localnet

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130719/a1670bca/attachment-0001.pgp>


More information about the notmuch mailing list