COM-32: Missing exception in CpEpEngine::encrypt_message()
authorMarkus Schaber <markus@pep-security.net>
Sat, 05 Nov 2016 11:46:52 +0100
changeset 19761f14ef408c1
parent 196 12263f75ffa2
child 198 f317fa016c94
COM-32: Missing exception in CpEpEngine::encrypt_message()
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Sat Nov 05 11:32:37 2016 +0100
     1.2 +++ b/CpEpEngine.cpp	Sat Nov 05 11:46:52 2016 +0100
     1.3 @@ -715,6 +715,9 @@
     1.4  	if (status == PEP_OUT_OF_MEMORY)
     1.5  		return E_OUTOFMEMORY;
     1.6  
     1.7 +	if (status != PEP_STATUS_OK)
     1.8 +		return FAIL("Failure to encrypt message", status);
     1.9 +
    1.10  	return S_OK;
    1.11  }
    1.12