]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Sat, 27 Nov 2004 11:50:54 +0000 (11:50 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 27 Nov 2004 11:50:54 +0000 (11:50 +0000)
servers/slapd/controls.c

index da339a55e8e985810cca0b4d2269f2daf5060369..e43c68579482057aac780ed3e3c7e151075ec618 100644 (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;