diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2013-07-19 08:36:12 -0700 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-07-20 09:13:48 -0300 |
commit | 348437243c861cc355f10e548a7a973a60299a25 (patch) | |
tree | 5cf2ced3a69af287ce8f20ed812b1508c0e664cf /contrib | |
parent | 03e2def474d539f8852bfdf7fd18ea3d8940e73c (diff) |
crypto: return NULL cryptoctx if protocol string is empty.
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.)
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions