]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/controls.c
Remove lint
[openldap] / servers / slapd / controls.c
index 7489fb66a457540f162b7640b574ca61c9bf2f33..7c26ff1c38fb4876cf072298de6dfbda2dcc92e7 100644 (file)
@@ -703,15 +703,15 @@ static int parseClientUpdate (
 
        /* TODO : Cookie Scheme Validation */
 #if 0
-       if ( lcup_cookie_validate(scheme, cookie) != LDAP_SUCCESS ) {
-               *text = "Invalid LCUP cookie";
-               return LCUP_INVALID_COOKIE;
-       }
-
        if ( lcup_cookie_scheme_validate(scheme) != LDAP_SUCCESS ) {
                *text = "Unsupported LCUP cookie scheme";
                return LCUP_UNSUPPORTED_SCHEME;
        }
+
+       if ( lcup_cookie_validate(scheme, cookie) != LDAP_SUCCESS ) {
+               *text = "Invalid LCUP cookie";
+               return LCUP_INVALID_COOKIE;
+       }
 #endif
 
        ber_dupbv( &op->o_clientupdate_state, &cookie );