summaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
Diffstat (limited to 'src/mhd')
-rw-r--r--src/mhd/mhd_legal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index 5af946d8..00a5e678 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -555,6 +555,16 @@ TALER_MHD_legal_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
return NULL;
}
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);
NULL != de;
de = readdir (d))