From: Howard Chu Date: Mon, 10 Dec 2001 13:44:02 +0000 (+0000) Subject: More cleanup. The last, I hope. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~671 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7a7b844a05643728f565eabcc5822c45b7f1fec;p=openldap More cleanup. The last, I hope. --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 584113aded..077fb6f146 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -675,7 +675,7 @@ glue_tool_entry_next ( int i; ID rc; - if (!glueBack) + if (!glueBack || !glueBack->be_entry_next) return NOID; rc = glueBack->be_entry_next (glueBack); @@ -704,6 +704,9 @@ glue_tool_entry_get ( ID id ) { + if (!glueBack || !glueBack->be_entry_get) + return NULL; + return glueBack->be_entry_get (glueBack, id); } @@ -744,7 +747,7 @@ glue_tool_entry_reindex ( ID id ) { - if (!glueBack->be_entry_reindex) + if (!glueBack || !glueBack->be_entry_reindex) return -1; return glueBack->be_entry_reindex (glueBack, id);