]> granicus.if.org Git - neomutt/commit
Fix gpgme segfault in create_recipient_set().
authorKevin McCarthy <kevin@8t8.us>
Sun, 16 Oct 2016 21:16:47 +0000 (14:16 -0700)
committerRichard Russon <rich@flatcap.org>
Fri, 28 Oct 2016 10:12:20 +0000 (11:12 +0100)
commit9a3c1f0f6ae6f63e6da2a4f6c3f8c1b8fa1cac15
tree6d1936e830f0c76653fcf08af8834c3e02aa530c
parentd20a069e5bbd00150709ee578edfe7741ee478c6
Fix gpgme segfault in create_recipient_set().

If gpgme_get_key() errors on the first key, the rset will not be
allocated yet.  Attempting to null-terminate (and then free) the array
causes a segfault.
crypt-gpgme.c