X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_regex%2Fos_match_execute.c;h=d61f0cb1b03b00ed3a4e5388ec3aeee4b5ab7194;hp=70f31842a4cd94e8a7998c2c169daa5d9d1d9a79;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/os_regex/os_match_execute.c b/src/os_regex/os_match_execute.c index 70f3184..d61f0cb 100755 --- 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 - * 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)