]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sat, 13 Mar 2010 21:41:51 +0000 (21:41 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 13 Mar 2010 21:41:51 +0000 (21:41 +0000)
servers/slapd/overlays/pcache.c

index 1b75814fba5899415d76003168e60a06f72556c7..05f94e426866696057de3fc9de251f1cf9509ef1 100644 (file)
@@ -3029,8 +3029,10 @@ pcache_op_search(
                                        slap_callback **scp;
                                        for ( scp = &op->o_callback; *scp != NULL;
                                                scp = &(*scp)->sc_next ) {
-                                               if ( (*scp)->sc_next == &cb )
+                                               if ( (*scp)->sc_next == &cb ) {
                                                        *scp = cb.sc_next;
+                                                       break;
+                                               }
                                        }
                                }
                        }