소스 검색

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);
 				ERR("Bad regular expression '%s'\n", (char*)*param);
 				goto error;
 				goto error;
 			}
 			}
-			p->fixed = &p->v;
+			p->fixed = p->v.regex;
 			break;
 			break;
 		case FPARAM_AVP:
 		case FPARAM_AVP:
 			name.s = (char*)*param;
 			name.s = (char*)*param;