Section configs structs arent pointers...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 16:35:41 +0000 (17:35 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 16:35:41 +0000 (17:35 +0100)
src/modules/rlm_sql/rlm_sql.c

index f184557..af37e6e 100644 (file)
@@ -1226,7 +1226,7 @@ static int rlm_sql_redundant(SQL_INST *inst, REQUEST *request,
        
        char    *p = path;
 
-       if (!section) {
+       if (!section || !section->reference) {
                DEBUG("No configuration provided for this section");
                
                return RLM_MODULE_NOOP;