Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
c54891ba
Commit
c54891ba
authored
Jan 30, 2015
by
npzacs
Browse files
mmc: check for NULL path
parent
b3d84b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/mmc.c
View file @
c54891ba
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment