mirror of
https://github.com/openharmony/security_deviceauth.git
synced 2026-07-20 19:04:51 -04:00
@@ -1349,6 +1349,7 @@ int32_t AddDevAuthServiceToManager(uintptr_t *serviceCtx)
|
||||
ret = sysMgr->AddSystemAbility(DEVICE_AUTH_SERVICE_ID, sPtr);
|
||||
if (ret != ERR_OK) {
|
||||
LOGE("add service failed");
|
||||
delete sPtr;
|
||||
return HC_ERROR;
|
||||
}
|
||||
*serviceCtx = reinterpret_cast<uintptr_t>(sPtr);
|
||||
|
||||
+1
-5
@@ -58,11 +58,7 @@ static int ExchangeRequest(AsyBaseCurTask *task, PakeParams *params, const CJson
|
||||
}
|
||||
|
||||
// execute
|
||||
res = ClientRequestStandardBindExchange(params, &(realTask->params));
|
||||
if (res != HC_SUCCESS) {
|
||||
LOGE("ClientRequestStandardBindExchange failed");
|
||||
return res;
|
||||
}
|
||||
GOTO_ERR_AND_SET_RET(ClientRequestStandardBindExchange(params, &(realTask->params)), res);
|
||||
|
||||
// package message
|
||||
GOTO_ERR_AND_SET_RET(AddIntToJson(sendToPeer, FIELD_MESSAGE, PAKE_BIND_EXCHANGE_REQUEST), res);
|
||||
|
||||
Reference in New Issue
Block a user