Andre Heinecke 7c220e387d
core: Initialize key return value in gpgme_get_key
* src/keylist.c (gpgme_get_key): Set r_key to NULL.

--
The c++ bindings and others assumed that r_key is set to NULL
on error. This is the behavior gpgme_op_keylist_next also
has. Even if it is not specified what happens to r_key on
error setting it to NULL should not hurt and is more
expected behavior.

This directly fixes an uninitialized memory access error
in the c++ bindings / Kleopatra:
GnuPG-Bug-Id: T3865

And will fix some additional random crashes in Kleopatra and GpgOL.
2018-03-27 11:24:55 +02:00
..
2018-03-23 11:26:36 +01:00
2018-03-23 11:26:36 +01:00
2015-08-30 19:04:44 +02:00
2017-12-08 05:59:11 +01:00
2017-12-08 05:59:11 +01:00
2017-03-02 14:47:51 +01:00
2017-12-08 05:59:11 +01:00
2018-03-05 09:40:41 +11:00
2017-08-16 00:59:35 +02:00
2014-10-02 15:57:50 +02:00
2018-03-15 16:23:18 +01:00
2017-12-08 05:59:11 +01:00
2016-09-13 20:53:49 +02:00
2010-11-03 09:56:27 +00:00
2015-03-16 13:40:34 +01:00
2017-03-28 16:21:37 +02:00
2015-12-02 11:28:07 +01:00
2015-12-02 11:28:07 +01:00
2015-12-02 11:28:07 +01:00
2016-09-13 20:53:49 +02:00