From 07bf3a547ce91c9103569fa4432dc315dba54034 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 23 Nov 2010 13:53:43 -0500 Subject: - whoops, enforce the right argument count --- src/format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/format.c b/src/format.c index 53ddda9..6250ad2 100644 --- a/src/format.c +++ b/src/format.c @@ -1057,9 +1057,9 @@ format_deref_f(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, "deref_f: error parsing arguments\n"); return -EINVAL; } - if (argc != 2) { + if (argc != 3) { slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id, - "deref_f: requires two arguments\n"); + "deref_f: requires three arguments\n"); format_free_parsed_args(argv); return -EINVAL; } -- cgit