Merge "Fix disagreement of client_id/app_data pointer semantic"
This commit is contained in:
commit
d230bcf4b0
|
@ -122,10 +122,10 @@ template <typename RequestType>
|
|||
void AddClientAndAppData(const keymaster_blob_t* client_id, const keymaster_blob_t* app_data,
|
||||
RequestType* request) {
|
||||
request->additional_params.Clear();
|
||||
if (client_id) {
|
||||
if (client_id && client_id->data_length > 0) {
|
||||
request->additional_params.push_back(TAG_APPLICATION_ID, *client_id);
|
||||
}
|
||||
if (app_data) {
|
||||
if (app_data && app_data->data_length > 0) {
|
||||
request->additional_params.push_back(TAG_APPLICATION_DATA, *app_data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue