From 7cec659d746816a571f2f69e0e92216eca46863a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 13 Mar 2010 21:41:51 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/overlays/pcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 1b75814fba..05f94e4268 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -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; + } } } } -- 2.39.5