summaryrefslogtreecommitdiffstats
path: root/date.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-10-17 11:22:13 -0700
committerKevin McCarthy <kevin@8t8.us>2016-10-17 11:22:13 -0700
commitd710f26ad436b0fa18274f26a2af93d461a3587d (patch)
treee3885dd513fbaf57e0194d16d6b35049c78eed4c /date.c
parentd733189063f55f6ed621feba6514eacad271cdc6 (diff)
Actually fix gpgme segfault in create_recipient_set().
Changeset 6e44bfa16096 did not fix the segv. (Sorry, I made the fix based off a report on IRC but didn't trigger the segv myself: it was caused by an out-of-tree patch). The actual problem was that the rset was only resized on a successful gpgme_get_key(). However, on error, the array still needs to be NULL-terminated before calling free_recipient_set(). Move the resize so it always takes place. This obviates the need for the NULL check added in 6e44bfa16096.
Diffstat (limited to 'date.c')
0 files changed, 0 insertions, 0 deletions