| 132 if(match == WS_LOCATION_MATCH_CS_REGEX || match == WS_LOCATION_MATCH_CI_REGEX) { |
136 if(match == WS_LOCATION_MATCH_CS_REGEX || match == WS_LOCATION_MATCH_CI_REGEX) { |
| 133 if(regcomp(&location->regex, match_str.ptr, regex_flags)) { |
137 if(regcomp(&location->regex, match_str.ptr, regex_flags)) { |
| 134 log_ereport(LOG_FAILURE, "Location: cannot compile regex pattern %s", match_str.ptr); |
138 log_ereport(LOG_FAILURE, "Location: cannot compile regex pattern %s", match_str.ptr); |
| 135 return NULL; |
139 return NULL; |
| 136 } |
140 } |
| |
141 ScfgDestr destr; |
| |
142 destr.destr = (cx_destructor_func)location_free_regex; |
| |
143 destr.data = location; |
| |
144 if(cxListAdd(cfg->destr, &destr)) { |
| |
145 return NULL; |
| |
146 } |
| 137 } |
147 } |
| 138 |
148 |
| 139 ConfigNode *dir = obj->children_begin; |
149 ConfigNode *dir = obj->children_begin; |
| 140 while(dir) { |
150 while(dir) { |
| 141 if(dir->type == CONFIG_NODE_OBJECT || dir->type == CONFIG_NODE_DIRECTIVE) { |
151 if(dir->type == CONFIG_NODE_OBJECT || dir->type == CONFIG_NODE_DIRECTIVE) { |