diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 99d5cdb1bf..b71c1958e7 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1093,7 +1093,8 @@ syncprov_add_slog( Operation *op, struct berval *csn ) sessionlog *sl; slog_entry *se; - for ( sl = si->si_logs; sl; ) { + sl = si->si_logs; + { /* Allocate a record. UUIDs are not NUL-terminated. */ se = ch_malloc( sizeof( slog_entry ) + opc->suuid.bv_len + csn->bv_len + 1 );