* op-support.c (_gpgme_op_reset): Instead of last change, only set
sub protocol if it is not the default.
+2009-11-10 Marcus Brinkmann <marcus@g10code.de>
+
+ * op-support.c (_gpgme_op_reset): Instead of last change, only set
+ sub protocol if it is not the default.
+
2009-11-10 Werner Koch <wk@g10code.com>
* op-support.c (_gpgme_op_reset): Ignore GPG_ERR_NOT_IMPLEMENTED
}
}
- 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))
{