Added assistance file name NULL check.

This commit is contained in:
Armin Novak 2018-02-19 10:00:23 +01:00
parent c27600528e
commit 212a448a38

View File

@ -1057,6 +1057,10 @@ int freerdp_assistance_parse_file(rdpAssistanceFile* file, const char* name)
FILE* fp = NULL;
size_t readSize;
INT64 fileSize;
if (!name)
return -1;
fp = fopen(name, "r");
if (!fp)