#include "mem_pool.h"
#include "upstream.h"
#include "memcached.h"
-#include "filter.h"
#define DEFAULT_BIND_PORT 768
#define DEFAULT_CONTROL_PORT 7608
cur = NULL;
/* Search modules from known C modules */
for (i = 0; i < MODULES_NUM; i++) {
+ g_strstrip (*p);
if (strcasecmp (modules[i].name, *p) == 0) {
cur = memory_pool_alloc (cfg->cfg_pool, sizeof (struct filter));
cur->type = C_FILTER;
while (l) {
filt = l->data;
if (filt->module) {
- if (filt->module->module_config_func (cfg)) {
+ if (!filt->module->module_config_func (cfg)) {
res = FALSE;
}
}
while (l) {
filt = l->data;
if (filt->module) {
- if (filt->module->module_config_func (cfg)) {
+ if (!filt->module->module_config_func (cfg)) {
res = FALSE;
}
}