]> git.sur5r.net Git - openldap/commitdiff
misc cleanup
authorJong Hyuk Choi <jongchoi@openldap.org>
Wed, 12 Nov 2003 00:24:11 +0000 (00:24 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Wed, 12 Nov 2003 00:24:11 +0000 (00:24 +0000)
servers/slapd/syncrepl.c

index da81ffc8d3f6e8dc2ee60402aebaf6ad6f1ea47f..0ca4b6ef351e4d201a5f2a96f86da11a366814f3 100644 (file)
@@ -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;