]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapi/slapi_pblock.c
Use accessor macros for SLAPI parameter blocks, should make it
[openldap] / servers / slapd / slapi / slapi_pblock.c
index 0445a5e53a018736a2c1950783065b4d1b0eabfd..e05e1c52e11a5bd082f2003cf1c38badc6172f73 100644 (file)
@@ -583,7 +583,7 @@ slapi_int_pblock_get_first( Backend *be, Slapi_PBlock **pb )
 {
 #if defined(LDAP_SLAPI)
        assert( pb != NULL );
-       *pb = (Slapi_PBlock *)be->be_pb;
+       *pb = SLAPI_BACKEND_PBLOCK( be );
        return (*pb == NULL ? LDAP_OTHER : LDAP_SUCCESS);
 #else /* LDAP_SLAPI */
        return LDAP_OTHER;