2
0

Ensure inf+ log messages are free of private information.

This commit is contained in:
Maarten Billemont 2019-10-30 12:20:30 -04:00
parent 37532f0ce5
commit 44a2a67417

View File

@ -65,13 +65,9 @@ bool mpw_update_master_key(MPMasterKey *masterKey, MPAlgorithmVersion *masterKey
mpw_free( masterKey, MPMasterKeySize );
*masterKeyAlgorithm = targetKeyAlgorithm;
*masterKey = mpw_master_key( fullName, masterPassword, *masterKeyAlgorithm );
if (!*masterKey) {
err( "Couldn't derive master key for user %s, algorithm %d.", fullName, *masterKeyAlgorithm );
return false;
}
}
return true;
return masterKey && *masterKey != NULL;
}
#if MPW_JSON