]> git.sur5r.net Git - openldap/commitdiff
ITS#3989 fix crash - don't access freed psearch records
authorHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2005 02:19:05 +0000 (02:19 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2005 02:19:05 +0000 (02:19 +0000)
servers/slapd/overlays/syncprov.c

index 883827276c2ebe56ba43c2ad23f39de5b1950b1d..3693e14613fec0783734bd776686e7da88c466f6 100644 (file)
@@ -1048,6 +1048,7 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
                                "search base has changed" );
                        sprev->s_next = snext;
                        syncprov_drop_psearch( ss, 1 );
+                       ss = sprev;
                        continue;
                }