Index: main/config.c =================================================================== --- main/config.c (revision 87019) +++ main/config.c (working copy) @@ -818,6 +818,12 @@ switch (attrtype) { case ATTRIBUTE_INCLUDE: + AST_LIST_TRAVERSE(&cfmtime->includes, cfinclude, list) { + if (!strcmp(cfinclude->include, filename)) { + AST_LIST_UNLOCK(&cfmtime_head); + return; + } + } cfinclude = ast_calloc(1, sizeof(*cfinclude) + strlen(filename) + 1); if (!cfinclude) { AST_LIST_UNLOCK(&cfmtime_head);