From: Hallvard Furuseth Date: Mon, 11 Feb 2008 21:05:12 +0000 (+0000) Subject: ITS#5328 - return LDAP result code from null_back_entry_get(). X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64bda128c62b6ccc1fb24983f3dbea04659b0c9c;p=openldap ITS#5328 - return LDAP result code from null_back_entry_get(). --- 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; }