Преглед изворни кода

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;