diff options
author | Marcus Brinkmann <[email protected]> | 2009-11-10 18:05:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2009-11-10 18:05:04 +0000 |
commit | aff1ed3fb611e34e257c677fa7d0203fa9dd6f62 (patch) | |
tree | 44d66711da9fbd9fdba28bae089eff10a6bce3ea /src/op-support.c | |
parent | Make recipients command work. (diff) | |
download | gpgme-aff1ed3fb611e34e257c677fa7d0203fa9dd6f62.tar.gz gpgme-aff1ed3fb611e34e257c677fa7d0203fa9dd6f62.zip |
2009-11-10 Marcus Brinkmann <[email protected]>
* op-support.c (_gpgme_op_reset): Instead of last change, only set
sub protocol if it is not the default.
Diffstat (limited to 'src/op-support.c')
-rw-r--r-- | src/op-support.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/op-support.c b/src/op-support.c index df54fc4d..b3cf55ec 100644 --- a/src/op-support.c +++ b/src/op-support.c @@ -130,11 +130,12 @@ _gpgme_op_reset (gpgme_ctx_t ctx, int type) } } - err = _gpgme_engine_set_protocol (ctx->engine, ctx->sub_protocol); - if (gpg_err_code (err) == GPG_ERR_NOT_IMPLEMENTED) - err = 0; - if (err) - return err; + if (ctx->sub_protocol != GPGME_PROTOCOL_DEFAULT) + { + err = _gpgme_engine_set_protocol (ctx->engine, ctx->sub_protocol); + if (err) + return err; + } if (type == 1 || (type == 2 && !ctx->io_cbs.add)) { |