Use correct return value.

pull/12667/head
Stephan Brunner 2020-03-23 09:26:30 +01:00
parent f01bc974ef
commit c6e8ae56db
No known key found for this signature in database
GPG Key ID: D3CD7237AFB7EF6B
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ int DeviceKey::generate_root_of_trust()
mbedtls_entropy_free(entropy);
delete entropy;
if (ret == MBED_SUCCESS) {
if (ret == DEVICEKEY_SUCCESS) {
ret = device_inject_root_of_trust(key_buff, actual_size);
}
#endif