diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 3c8a6101270c..b3e4ffc01988 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -1331,7 +1331,7 @@ static int dict_read_process_protocol(char **argv, int argc) * Some protocols don't need them, so it's OK if the * validation routines don't exist. */ - if (require_dl && (dict_dlopen(dict, argv[0]) < 0)) { + if ((dict_dlopen(dict, argv[0]) < 0) && require_dl) { error: talloc_free(dict); return -1; diff --git a/src/tests/unit/dictionary b/src/tests/unit/dictionary index 8057bfb30f77..2f41f55398d6 100644 --- a/src/tests/unit/dictionary +++ b/src/tests/unit/dictionary @@ -1,4 +1,4 @@ -PROTOCOL RADIUS 1 +PROTOCOL RADIUS 1 verify=lib BEGIN-PROTOCOL RADIUS #