aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-17 18:34:39 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-17 18:34:39 +0100
commitecb39ef51c90cd1733282fb7c6472da258bf8aca (patch)
treeab30645671d2e841319a9cac603b19af32479e88
parentd798da08d61a6896b539e633a11afc9ab0179eed (diff)
fix
-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 5af946d8f..00a5e678c 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))