]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return noop if we did no work
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Dec 2012 21:55:17 +0000 (21:55 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Dec 2012 21:55:31 +0000 (21:55 +0000)
src/modules/rlm_ldap/rlm_ldap.c

index 230e637f0e15d602aba0a399376caa2d4ebee2d4..7ef55eebe1e84a341c7859a6458a4c9100759b7a 100644 (file)
@@ -2341,6 +2341,11 @@ static int user_modify(ldap_instance *inst, REQUEST *request,
                total++;
        }
        
+       if (total == 0) {
+               module_rcode = RLM_MODULE_NOOP;
+               goto release;
+       }
+       
        mod_p[total] = NULL;
        
        /*