]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use parent rather than cs if cs doesn't exist
authorAlan T. DeKok <aland@freeradius.org>
Sun, 9 Oct 2011 16:15:00 +0000 (18:15 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 9 Oct 2011 16:16:33 +0000 (18:16 +0200)
src/main/connection.c

index 2790c71b865aa05fc3ca396574dbc2ce3e79c5c0..020ca5ed7b05c24636af8f5ff072c7e3bdb4539f 100644 (file)
@@ -223,7 +223,7 @@ fr_connection_pool_t *fr_connection_pool_init(CONF_SECTION *parent,
 
        cs = cf_section_sub_find(parent, "pool");
        if (!cs) {
-               cf_log_err(cf_sectiontoitem(cs), "No \"pool\" subsection found");
+               cf_log_err(cf_sectiontoitem(parent), "No \"pool\" subsection found");
                return NULL;
        }