]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Undo some assertion changes in proto_radius_udp.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 May 2020 23:24:28 +0000 (18:24 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 May 2020 23:24:28 +0000 (18:24 -0500)
src/modules/proto_radius/proto_radius_udp.c

index 0b345267ef89b4a30d35310ffa271b490f3c7646..e07b6d908df04a66252a691dd543bff5d340603f 100644 (file)
@@ -484,7 +484,10 @@ static int mod_bootstrap(void *instance, CONF_SECTION *cs)
                }
        }
 
-       fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL));   /* listen { ... } */
+       ci = cf_parent(inst->cs); /* listen { ... } */
+       fr_assert(ci != NULL);
+       ci = cf_parent(ci);
+       fr_assert(ci != NULL);
 
        server_cs = cf_item_to_section(ci);