From 38b430be3cbd83c49978e0f3d5320c57645b78cd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 27 Nov 2004 11:50:54 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index da339a55e8..e43c685794 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -354,8 +354,8 @@ slap_find_control_id( int *cid ) { slap_control *ctrl = find_ctrl( oid ); - if ( ctrl && cid ) { - *cid = ctrl->sc_cid; + if ( ctrl ) { + if ( cid ) *cid = ctrl->sc_cid; return LDAP_SUCCESS; } return LDAP_CONTROL_NOT_FOUND; -- 2.39.5