See ftp://ftp.openldap.org/incoming/syncrepl-rwm-2.patch for an updated version, catching one extra stack allocation use case. Regards, Nick.