Check if we got group_da
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2015 17:56:37 +0000 (13:56 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2015 17:58:06 +0000 (13:58 -0400)
src/modules/rlm_sql/rlm_sql.c

index e1e18c9..6531bb1 100644 (file)
@@ -865,6 +865,11 @@ static int mod_bootstrap(CONF_SECTION *conf, void *instance)
 
                        inst->group_da = dict_attrbyname("SQL-Group");
                }
+
+               if (!inst->group_da) {
+                       ERROR("Failed resolving group attribute");
+                       return -1;
+               }
        }
 
        /*