From: Arran Cudbard-Bell Date: Wed, 6 Mar 2013 18:58:20 +0000 (-0500) Subject: Allocate the subsection if it doesn't exist instead of failing X-Git-Tag: release_3_0_0_beta1~818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cb80caf7db4a60693c82717eeab14d0ca31c3b;p=thirdparty%2Ffreeradius-server.git Allocate the subsection if it doesn't exist instead of failing --- diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index 7549706196f..3c58503f99f 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -946,10 +946,10 @@ static int rlm_sql_instantiate(CONF_SECTION *conf, void **instance) cs = cf_section_sub_find(conf, name); if (!cs) { - radlog(L_ERR, "%s driver requires %s driver subsection", - inst->config->sql_driver_name, name); - - return -1; + cs = cf_section_alloc(conf, name, NULL); + if (!cs) { + return -1; + } } /*