浏览代码

core: regex fixup fix for k modules

k modules that use the core regex fixup functions expect a pointer
to a regex, but got instead a double pointer to a regex.
Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
15d47d5cb0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

@@ -1083,7 +1083,7 @@ int fix_param(int type, void** param)
 				ERR("Bad regular expression '%s'\n", (char*)*param);
 				goto error;
 			}
-			p->fixed = &p->v;
+			p->fixed = p->v.regex;
 			break;
 		case FPARAM_AVP:
 			name.s = (char*)*param;