This commit is contained in:
Christian Grothoff 2020-02-17 18:34:39 +01:00
parent d798da08d6
commit ecb39ef51c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -555,6 +555,16 @@ TALER_MHD_legal_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
return NULL; return NULL;
} }
d = opendir (path); d = opendir (path);
if (NULL == d)
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING,
section,
diroption,
"Could not open directory");
GNUNET_free (legal->terms_etag);
GNUNET_free (legal);
return NULL;
}
for (struct dirent *de = readdir (d); for (struct dirent *de = readdir (d);
NULL != de; NULL != de;
de = readdir (d)) de = readdir (d))