summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/format.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/format.c b/src/format.c
index 88250f7..3b11a1d 100644
--- a/src/format.c
+++ b/src/format.c
@@ -989,8 +989,10 @@ format_deref(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e,
if (choices != NULL) {
format_add_choice(outbuf_choices, outbuf, choices);
format_free_bv_list(choices);
+ return 0;
+ } else {
+ return -ENOENT;
}
- return 0;
}
/* For the first N-1 arguments, look up the entries matching DNs stored in the