Check if we got group_da
[freeradius.git] / 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;
+               }
        }
 
        /*