Commit c54891ba authored by npzacs's avatar npzacs
Browse files

mmc: check for NULL path

parent b3d84b9f
......@@ -340,7 +340,13 @@ static int _mmc_read_data_keys(MMC *mmc, uint8_t agid, uint8_t *read_data_key, u
MMC *mmc_open(const char *path)
MMC *mmc = calloc(1, sizeof(MMC));
MMC *mmc;
if (!path) {
return NULL;
mmc = calloc(1, sizeof(MMC));
crypto_create_nonce(mmc->host_nonce, sizeof(mmc->host_nonce));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment