aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/tinyrad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tinyrad.c b/src/tinyrad.c
index 906d4ad..b37c6c7 100644
--- a/src/tinyrad.c
+++ b/src/tinyrad.c
@@ -305,11 +305,11 @@ my_dict_load(
305 }; 305 };
306 306
307 // set paths 307 // set paths
308 for(pos = 0; ( ((dict_paths)) && ((dict_paths[pos])) ); pos++) 308 if ((dict_paths))
309 { 309 {
310 if ((rc = tinyrad_dict_add_path(dict, dict_paths[pos])) != TRAD_SUCCESS) 310 if ((rc = tinyrad_dict_set_option(dict, TRAD_DICT_OPT_PATHS, dict_paths)) != TRAD_SUCCESS)
311 { 311 {
312 trutils_error(opts, NULL, "%s: %s", dict_paths[pos], tinyrad_strerror(rc)); 312 trutils_error(opts, NULL, "tinyrad_dict_set_option(TRAD_DICT_OPT_PATHS): %s", tinyrad_strerror(rc));
313 tinyrad_free(dict); 313 tinyrad_free(dict);
314 return(rc); 314 return(rc);
315 }; 315 };