projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'v2.5.1'
[ossec-hids.git]
/
src
/
os_regex
/
os_match_execute.c
diff --git
a/src/os_regex/os_match_execute.c
b/src/os_regex/os_match_execute.c
index
70f3184
..
d61f0cb
100755
(executable)
--- a/
src/os_regex/os_match_execute.c
+++ b/
src/os_regex/os_match_execute.c
@@
-5,7
+5,7
@@
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
* Foundation
*/
* Foundation
*/
@@
-80,6
+80,15
@@
int _os_strmatch(char *pattern, char *str, int str_len, int size)
return(TRUE);
}
return(TRUE);
}
+int _os_strstr(char *pattern, char *str, int str_len, int size)
+{
+ if(strstr(str, pattern) != NULL)
+ {
+ return(TRUE);
+ }
+ return(FALSE);
+}
+
/** Internal matching **/
int _os_strcmp_last(char *pattern, char *str, int str_len, int size)
/** Internal matching **/
int _os_strcmp_last(char *pattern, char *str, int str_len, int size)