Merge commit 'v2.5.1'
[ossec-hids.git] / src / os_regex / os_match_execute.c
index 70f3184..d61f0cb 100755 (executable)
@@ -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
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
 
@@ -80,6 +80,15 @@ int _os_strmatch(char *pattern, char *str, int str_len, int size)
     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)