remove unnecessary assert
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 14:56:11 +0000 (10:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 14:56:11 +0000 (10:56 -0400)
src/main/modules.c
src/main/state.c

index 34a7634..749c07e 100644 (file)
@@ -1248,7 +1248,8 @@ static int load_component_section(CONF_SECTION *cs,
 
 static int load_byserver(CONF_SECTION *cs)
 {
-       rlm_components_t comp, found;
+       rlm_components_t comp;
+       bool found;
        char const *name = cf_section_name2(cs);
        rbtree_t *components;
        virtual_server_t *server = NULL;
@@ -1286,7 +1287,7 @@ static int load_byserver(CONF_SECTION *cs)
         *      Loop over all of the known components, finding their
         *      configuration section, and loading it.
         */
-       found = 0;
+       found = false;
        for (comp = 0; comp < MOD_COUNT; ++comp) {
                CONF_SECTION *subcs;
 
@@ -1346,7 +1347,7 @@ static int load_byserver(CONF_SECTION *cs)
 
                server->subcs[comp] = subcs;
 
-               found = 1;
+               found = true;
        } /* loop over components */
 
        /*
index 161834e..b195a7c 100644 (file)
@@ -479,7 +479,6 @@ bool fr_state_put_vps(REQUEST *request, RADIUS_PACKET *original, RADIUS_PACKET *
 
        PTHREAD_MUTEX_UNLOCK(&state->mutex);
 
-       rad_assert(request->state == NULL);
        VERIFY_REQUEST(request);
        return true;
 }