39 return NULL; |
39 return NULL; |
40 } |
40 } |
41 |
41 |
42 ACLFile *conf = malloc(sizeof(ACLFile)); |
42 ACLFile *conf = malloc(sizeof(ACLFile)); |
43 conf->parser.parse = acl_parse; |
43 conf->parser.parse = acl_parse; |
44 conf->namedACLs = cxPointerLinkedListCreate(cxDefaultAllocator, cx_cmp_ptr); |
44 conf->namedACLs = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS); |
45 conf->uriACLs = cxPointerLinkedListCreate(cxDefaultAllocator, cx_cmp_ptr); |
45 conf->uriACLs = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS); |
46 conf->pathACLs = cxPointerLinkedListCreate(cxDefaultAllocator, cx_cmp_ptr); |
46 conf->pathACLs = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS); |
47 |
47 |
48 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
48 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
49 if(r != 0) { |
49 if(r != 0) { |
50 free_acl_file(conf); |
50 free_acl_file(conf); |
51 return NULL; |
51 return NULL; |