added argument checking

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@317 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-11 12:02:25 +00:00
parent a552631872
commit aca3559290

View File

@@ -190,6 +190,11 @@ int get_ef_card_access(sc_card_t *card,
sc_file_t *file = NULL;
u8 *p;
if (!ef_cardaccess || !length_ef_cardaccess) {
r = SC_ERROR_INVALID_ARGUMENTS;
goto err;
}
memset(&path, 0, sizeof path);
r = sc_append_file_id(&path, FID_EF_CARDACCESS);
if (r < 0) {