Reported by: jamesgolovich
Patch by: jamesgolovich
Closes issue #11144
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88212
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);