From: Jong Hyuk Choi Date: Wed, 12 Nov 2003 00:24:11 +0000 (+0000) Subject: misc cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~455 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e36f1398f020a220d582c62bba3ab78b5332ed41;p=openldap misc cleanup --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index da81ffc8d3..0ca4b6ef35 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1051,9 +1051,11 @@ syncrepl_entry( } ber_dupbv( &op->o_sync_csn, syncCookie_req->ctxcsn ); - subseq_ptr = strstr( op->o_sync_csn.bv_val, "#0000" ); - subseq_ptr += 4; - *subseq_ptr = '1'; + if ( op->op_sync_csn.bv_val ) { + subseq_ptr = strstr( op->o_sync_csn.bv_val, "#0000" ); + subseq_ptr += 4; + *subseq_ptr = '1'; + } op->o_req_dn = si->si_syncUUID_ndn; op->o_req_ndn = si->si_syncUUID_ndn;