summaryrefslogtreecommitdiff
path: root/lib/radsec.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-07-03 10:13:51 +0200
committerLinus Nordberg <linus@nordu.net>2011-07-03 10:13:51 +0200
commit074f7dfe1934273a2336414c135b2494fda08af3 (patch)
treeadf125a61eab22b6d2e31f720a8a33d284b8fabc /lib/radsec.c
parent1e71b7c57ede27a9cecb0d78d23fb4e48a85479c (diff)
Handle configuration errors better.
Diffstat (limited to 'lib/radsec.c')
-rw-r--r--lib/radsec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/radsec.c b/lib/radsec.c
index 6104e46..d4c0a09 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -64,7 +64,7 @@ rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict)
char *fn = NULL;
if (dict == NULL)
- if (ctx->config != NULL)
+ if (ctx->config != NULL && ctx->config->dictionary)
dict = ctx->config->dictionary;
if (dict == NULL)
@@ -83,7 +83,8 @@ rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict)
if (dict_init (dirname (dir), basename (fn)) < 0)
{
- r = rs_err_ctx_push_fl (ctx, RSE_FR, __FILE__, __LINE__, "dict_init");
+ r = rs_err_ctx_push_fl (ctx, RSE_FR, __FILE__, __LINE__,
+ "failing dict_init(\"%s\")", dict);
goto out;
}