fixing COM-43
authorVolker Birk <vb@pep-project.org>
Wed, 23 Nov 2016 16:02:58 +0100
changeset 2166a08f0334e8a
parent 215 033aa489f9d6
child 217 7ebb44e5bf85
fixing COM-43
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Wed Nov 23 15:36:52 2016 +0100
     1.2 +++ b/CpEpEngine.cpp	Wed Nov 23 16:02:58 2016 +0100
     1.3 @@ -404,6 +404,16 @@
     1.4  		::free_identity(_ident);
     1.5  		return S_OK;
     1.6  	}
     1.7 +	else if (status == PEP_GET_KEY_FAILED) {
     1.8 +		if (_ident->fpr) {
     1.9 +			pEp_free(_ident->fpr);
    1.10 +			_ident->fpr = NULL;
    1.11 +		}
    1.12 +		copy_identity(result, _ident);
    1.13 +		result->Fpr = NULL;
    1.14 +		::free_identity(_ident);
    1.15 +		return S_OK;
    1.16 +	}
    1.17  	else {
    1.18  		::free_identity(_ident);
    1.19  		if (status == PEP_OUT_OF_MEMORY)