summaryrefslogtreecommitdiff
path: root/src/ejabberd_pkix.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-12-08 12:50:10 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-12-08 12:50:10 +0300
commite15a9a2b9e56b6e4312e4fd8142bb4a18895d74d (patch)
tree5ce0eb52f717245ca19ed4ca0f5ba4bfc5a3d148 /src/ejabberd_pkix.erl
parentDon't call pkix_is_self_signed/1 too frequently (diff)
Log warning on empty wildcard paths
Diffstat (limited to 'src/ejabberd_pkix.erl')
-rw-r--r--src/ejabberd_pkix.erl15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ejabberd_pkix.erl b/src/ejabberd_pkix.erl
index 54bf8bc9..7fd7e628 100644
--- a/src/ejabberd_pkix.erl
+++ b/src/ejabberd_pkix.erl
@@ -295,7 +295,20 @@ get_certfiles_from_config_options(_State) ->
undefined ->
[];
Paths ->
- lists:flatmap(fun wildcard/1, Paths)
+ lists:flatmap(
+ fun(Path) ->
+ case wildcard(Path) of
+ [] ->
+ ?WARNING_MSG(
+ "Path ~s is empty, please "
+ "make sure ejabberd has "
+ "sufficient rights to read it",
+ [Path]),
+ [];
+ Fs ->
+ Fs
+ end
+ end, Paths)
end,
Local = lists:flatmap(
fun(OptHost) ->