]> git.sur5r.net Git - openldap/commitdiff
Additional fix for ITS#2924: check for availability of
authorRalf Haferkamp <ralf@openldap.org>
Mon, 19 Jan 2004 14:38:15 +0000 (14:38 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Mon, 19 Jan 2004 14:38:15 +0000 (14:38 +0000)
glueBack->be_entry_close before calling it

servers/slapd/backglue.c

index c9c29a186069bc4af4cf17fca11db938314fa7ff..6185ed77f92ee2325ccb8a0ec23e4c110619a5ec 100644 (file)
@@ -464,7 +464,8 @@ glue_tool_entry_next (
 
        /* If we ran out of entries in one database, move on to the next */
        while (rc == NOID) {
-               glueBack->be_entry_close (glueBack);
+               if ( glueBack && glueBack->be_entry_close )
+                       glueBack->be_entry_close (glueBack);
                for (i=0; i<gi->nodes; i++) {
                        if (gi->n[i].be == glueBack)
                                break;