Fix prev commit

This commit is contained in:
Howard Chu 2004-11-27 11:50:54 +00:00
parent d3ced75fe7
commit 38b430be3c

View File

@ -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;