Browse Source

Comparison logic on enum is dangerous.

JNI-44
Edouard Tisserant 10 years ago
parent
commit
3f7cc19e21
  1. 1
      src/gen_cpp_Engine.ysl2

1
src/gen_cpp_Engine.ysl2

@ -43,6 +43,7 @@ tstylesheet {
PEP_STATUS status = ::«@name»(session`apply "parm", mode=call``if "@name = 'encrypt_message'" > , PEP_enc_PEP`);
if ((status > PEP_STATUS_OK && status < PEP_UNENCRYPTED) |`> |`
status < PEP_STATUS_OK |`> |`
status >= PEP_TRUSTWORD_NOT_FOUND) {
throw_pEp_Exception(env, status);
return NULL;

Loading…
Cancel
Save