From edf359795c28b216f697c776e9b7042a0b448685 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 31 Jan 2015 12:52:56 +0000 Subject: [PATCH] ITS#8039 cleanup --- servers/slapd/overlays/syncprov.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index b85d4604e3..04aba3bf99 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1028,6 +1028,8 @@ syncprov_qresp( opcookie *opc, syncops *so, int mode ) a = attr_find( opc->se->e_attrs, slap_schema.si_ad_entryUUID ); if ( a ) ri->ri_uuid = a->a_nvals[0]; + else + ri->ri_uuid.bv_len = 0; if ( csn.bv_len ) { ri->ri_csn.bv_val = (char *)(ri + 1); ri->ri_csn.bv_len = csn.bv_len; @@ -1053,6 +1055,8 @@ syncprov_qresp( opcookie *opc, syncops *so, int mode ) ri->ri_csn.bv_val = ri->ri_uuid.bv_val + ri->ri_uuid.bv_len; memcpy( ri->ri_csn.bv_val, csn.bv_val, csn.bv_len ); ri->ri_csn.bv_val[csn.bv_len] = '\0'; + } else { + ri->ri_csn.bv_val = NULL; } } ri->ri_list = &opc->ssres; -- 2.39.5