Commit 86c1559b authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

cleanup (related to ITS#6262)

parent bf82752e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment