core: Handle import status lines during keylist operation
* src/keylist.c (gpgme_op_keylist_from_data_start): Call
_gpgme_op_import_init_result.
--
This fixes a crash when importing keys from data. Initializing the
import result was missing for this keylist operation.
Fixes-commit: f3ca57dfd7
GnuPG-bug-id: 5951
This commit is contained in:
parent
5ba0e454a3
commit
5d19eb4ad5
@ -1225,6 +1225,10 @@ gpgme_op_keylist_from_data_start (gpgme_ctx_t ctx, gpgme_data_t data,
|
|||||||
if (err)
|
if (err)
|
||||||
return TRACE_ERR (err);
|
return TRACE_ERR (err);
|
||||||
|
|
||||||
|
err = _gpgme_op_import_init_result (ctx);
|
||||||
|
if (err)
|
||||||
|
return TRACE_ERR (err);
|
||||||
|
|
||||||
_gpgme_engine_set_status_handler (ctx->engine, keylist_status_handler, ctx);
|
_gpgme_engine_set_status_handler (ctx->engine, keylist_status_handler, ctx);
|
||||||
err = _gpgme_engine_set_colon_line_handler (ctx->engine,
|
err = _gpgme_engine_set_colon_line_handler (ctx->engine,
|
||||||
keylist_colon_handler, ctx);
|
keylist_colon_handler, ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user