core: Fix status error return for gpgsm.
authorWerner Koch <wk@gnupg.org>
Thu, 9 Mar 2017 10:45:00 +0000 (11:45 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 9 Mar 2017 10:45:00 +0000 (11:45 +0100)
commitd2240a2a1819874929bdab820bcbd3bee7f94407
tree1aecda9baf3d01f13f20433b6ccbc418c8500d5b
parent41398779abbcb1ec2d7491e141469a752fc706ff
core: Fix status error return for gpgsm.

* src/engine-gpgsm.c (gpgsm_assuan_simple_command): Make sure CB_ERR
is returned.
* src/import.c (parse_import_res): Do not return an error for the last
field.
(import_status_handler): Actually return the error from
parse_import_res.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpgsm.c
src/import.c