From 64bda128c62b6ccc1fb24983f3dbea04659b0c9c Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 11 Feb 2008 21:05:12 +0000 Subject: [PATCH] ITS#5328 - return LDAP result code from null_back_entry_get(). --- servers/slapd/back-null/null.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-null/null.c b/servers/slapd/back-null/null.c index d80b3d5e43..bc80698716 100644 --- a/servers/slapd/back-null/null.c +++ b/servers/slapd/back-null/null.c @@ -70,7 +70,8 @@ null_back_false( Operation *op, SlapReply *rs ) /* for overlays */ -int null_back_entry_get( +static int +null_back_entry_get( Operation *op, struct berval *ndn, ObjectClass *oc, @@ -78,8 +79,10 @@ int null_back_entry_get( int rw, Entry **ent ) { - *ent = NULL; - return 1; + assert( *ent == NULL ); + + /* don't admit the object isn't there */ + return oc || at ? LDAP_NO_SUCH_ATTRIBUTE : LDAP_BUSY; } -- 2.39.5