]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set server_cs to the parent of this listen section
authorAlan T. DeKok <aland@freeradius.org>
Fri, 16 Jun 2017 17:45:47 +0000 (13:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 16 Jun 2017 18:17:04 +0000 (14:17 -0400)
src/modules/proto_radius/proto_radius.c

index 4afb590489e482d699e066bf3d3716fded9cbc30..d53b0f23730a3d88e967523b6fa5594af1ecb619 100644 (file)
@@ -307,7 +307,10 @@ static int mod_instantiate(void *instance, CONF_SECTION *conf)
        fr_dict_attr_t const    *da;
        CONF_PAIR               *cp = NULL;
 
-       inst->server_cs = conf;
+       /*
+        *      The listener is inside of a virtual server.
+        */
+       inst->server_cs = cf_parent(conf);
 
        /*
         *      Instantiate the I/O module