From d471e71adabdad4fba8b59c4017a1c5f1f111073 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 7 Mar 2008 16:34:51 +0000 Subject: fixed potential infinite loop condition when module load failed on startup --- stringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stringbuf.c') diff --git a/stringbuf.c b/stringbuf.c index d5b77d99..8745c291 100755 --- a/stringbuf.c +++ b/stringbuf.c @@ -709,7 +709,7 @@ int rsCStrSzStrMatchRegex(cstr_t *pCS1, uchar *psz) BEGINfunc - if(objUse(regexp, "regexp") == RS_RET_OK) { + if(objUse(regexp, "lmregexp") == RS_RET_OK) { regexp.regcomp(&preq, (char*) rsCStrGetSzStr(pCS1), 0); ret = regexp.regexec(&preq, (char*) psz, 0, NULL, 0); regexp.regfree(&preq); -- cgit