summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-02 17:40:07 -0500
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-02 17:40:07 -0500
commit372e69fd8c347f14fecca340153b8994a88a930b (patch)
tree741cf239481fcb117621d09a4d57e1172f7a018e /src
parent64e9ed9dcc0b7b7fdb92fe86bf8f8c589e3b24fe (diff)
downloadslapi-nis-372e69fd8c347f14fecca340153b8994a88a930b.tar.gz
slapi-nis-372e69fd8c347f14fecca340153b8994a88a930b.tar.xz
slapi-nis-372e69fd8c347f14fecca340153b8994a88a930b.zip
- make deref() return an error when it fails to evaluate, just like most
other list-producing functions do
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