Skip to content
Snippets Groups Projects
Commit 6cf14a77 authored by Luke Howard's avatar Luke Howard
Browse files

Add be_match() macro: one cannot always compare BackendDB pointer

values in order to test equivalence, because the overlay engine
may have reset the backend pointer to a temporary copy on the stack.

So, we test pointer equivalence of the BackendDB itself, then of
be_nsuffix -- this macro can be updated if necessary.
parent ef7421b8
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,9 @@ LDAP_SLAPD_F (void) ava_free LDAP_P((
/*
* backend.c
*/
#define be_match( be1, be2 ) ( (be1) == (be2) || (be1)->be_nsuffix == (be2)->be_nsuffix )
LDAP_SLAPD_F (int) backend_init LDAP_P((void));
LDAP_SLAPD_F (int) backend_add LDAP_P((BackendInfo *aBackendInfo));
LDAP_SLAPD_F (int) backend_num LDAP_P((Backend *be));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment