projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* new upstream release (2.7)
[ossec-hids.git]
/
src
/
shared
/
regex_op.c
diff --git
a/src/shared/regex_op.c
b/src/shared/regex_op.c
index
7478c31
..
8bb0322
100755
(executable)
--- a/
src/shared/regex_op.c
+++ b/
src/shared/regex_op.c
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/shared/regex_op.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
@@
-23,11
+24,11
@@
int OS_PRegex(char *str, char *regex)
{
regex_t preg;
int OS_PRegex(char *str, char *regex)
{
regex_t preg;
-
+
if(!str || !regex)
return(0);
if(!str || !regex)
return(0);
-
-
+
+
if(regcomp(&preg, regex, REG_EXTENDED|REG_NOSUB) != 0)
{
merror("%s: Posix Regex compile error (%s).", __local_name, regex);
if(regcomp(&preg, regex, REG_EXTENDED|REG_NOSUB) != 0)
{
merror("%s: Posix Regex compile error (%s).", __local_name, regex);
@@
-43,7
+44,7
@@
int OS_PRegex(char *str, char *regex)
regfree(&preg);
return(1);
regfree(&preg);
return(1);
-
+
}
#endif
}
#endif