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

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

Date: Sat, 20 Jul 2013 09:36:41 -0300

To: Jameson Graef Rollins, Notmuch Mail

Cc:

From: David Bremner


Jameson Graef Rollins <jrollins@finestructure.net> writes:

> 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.)

Pushed, thanks for the fix

d

Thread: