From: Howard Chu Date: Sat, 27 Nov 2004 11:50:54 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~200 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38b430be3cbd83c49978e0f3d5320c57645b78cd;p=openldap Fix prev commit --- 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;