]> git.sur5r.net Git - openldap/commitdiff
cleanup (related to ITS#6262)
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 19 Apr 2010 22:37:53 +0000 (22:37 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 19 Apr 2010 22:37:53 +0000 (22:37 +0000)
servers/slapd/overlays/accesslog.c

index 0d1de46bb02e19529e4091c50062d0c626a589bc..aa165b7d0cecc46c06fb5464741d12147ad34d1e 100644 (file)
@@ -582,8 +582,8 @@ log_old_lookup( Operation *op, SlapReply *rs )
        if ( a ) {
                ber_len_t len = a->a_nvals[0].bv_len;
                /* Paranoid len check, normalized CSNs are always the same length */
-               if ( len > LDAP_LUTIL_CSNSTR_BUFSIZE )
-                       len = LDAP_LUTIL_CSNSTR_BUFSIZE;
+               if ( len > LDAP_PVT_CSNSTR_BUFSIZE )
+                       len = LDAP_PVT_CSNSTR_BUFSIZE;
                if ( memcmp( a->a_nvals[0].bv_val, pd->csn.bv_val, len ) > 0 ) {
                        AC_MEMCPY( pd->csn.bv_val, a->a_nvals[0].bv_val, len );
                        pd->csn.bv_len = len;