]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/ldapsync.c
ITS#3576 use actual backend (not glue instance) for restriction and
[openldap] / servers / slapd / ldapsync.c
index 1d34c9e8912cce3b17f95313f3c8f07fd5c298dc..5ecf2590f799c9c4c5f52edaa29b985b5a397f1b 100644 (file)
 #include "../../libraries/liblber/lber-int.h" /* get ber_strndup() */
 #include "lutil_ldap.h"
 
-#if 0
-struct sync_cookie *slap_sync_cookie = NULL;
-#else
 struct slap_sync_cookie_s slap_sync_cookie =
        LDAP_STAILQ_HEAD_INITIALIZER( slap_sync_cookie );
-#endif
 
 void
 slap_compose_sync_cookie(
@@ -43,7 +39,7 @@ slap_compose_sync_cookie(
 {
        char cookiestr[ LDAP_LUTIL_CSNSTR_BUFSIZE + 20 ];
 
-       if ( csn->bv_val == NULL ) {
+       if ( BER_BVISNULL( csn )) {
                if ( rid == -1 ) {
                        cookiestr[0] = '\0';
                } else {