summaryrefslogtreecommitdiff
path: root/lib/radsec.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-21 14:58:52 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-21 14:58:52 +0100
commita0ce75b4bacbc864070d085f9bd09a31f96d010f (patch)
treee767eb78a4d06ab77332db666905bfa982601ad1 /lib/radsec.c
parenta177887c740c173948fc7dbf96f726616885c407 (diff)
Define RS_FREERADIUS_DICT and use it when missing "dictionary" in config.
Diffstat (limited to 'lib/radsec.c')
-rw-r--r--lib/radsec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/radsec.c b/lib/radsec.c
index 6e68950..ae8eda6 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -68,8 +68,7 @@ rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict)
dict = ctx->config->dictionary;
if (dict == NULL)
- return rs_err_ctx_push_fl (ctx, RSE_INVAL, __FILE__, __LINE__,
- "missing dictionary");
+ dict = RS_FREERADIUS_DICT;
dictlen = strlen (dict);
dir = rs_calloc (ctx, 1, dictlen + 1);