diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-19 21:03:26 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-19 21:03:26 +0100 |
commit | a903c4fefdc19bb838e808146c6aa1a32296e4cb (patch) | |
tree | bbb399fca3cbc4a4f894128eb17c9262d11c75b6 /package/snort/patches/patch-src_detection-plugins_sp_replace_c | |
parent | d2be2bd2fc1c6e5dcdf8fc845a88e02423a0574b (diff) | |
parent | 69a374abb905573dc63f18a37dc7378ae5e9627c (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/snort/patches/patch-src_detection-plugins_sp_replace_c')
-rw-r--r-- | package/snort/patches/patch-src_detection-plugins_sp_replace_c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/package/snort/patches/patch-src_detection-plugins_sp_replace_c b/package/snort/patches/patch-src_detection-plugins_sp_replace_c index ebf2f0375..e532b2ac1 100644 --- a/package/snort/patches/patch-src_detection-plugins_sp_replace_c +++ b/package/snort/patches/patch-src_detection-plugins_sp_replace_c @@ -1,14 +1,5 @@ ---- snort-2.8.5.1.orig/src/detection-plugins/sp_replace.c 2009-07-07 17:37:04.000000000 +0200 -+++ snort-2.8.5.1/src/detection-plugins/sp_replace.c 2009-12-27 17:23:47.000000000 +0100 -@@ -111,7 +111,7 @@ static PatternMatchData * Replace_Parse( - file_name, file_line); - } - /* clear out the temp buffer */ -- bzero(tmp_buf, MAX_PATTERN_SIZE); -+ memset(tmp_buf, 0, MAX_PATTERN_SIZE); - - while(isspace((int)*rule)) - rule++; +--- snort-2.8.5.2.orig/src/detection-plugins/sp_replace.c 2009-07-07 17:37:04.000000000 +0200 ++++ snort-2.8.5.2/src/detection-plugins/sp_replace.c 2010-01-19 20:21:14.000000000 +0100 @@ -122,7 +122,7 @@ static PatternMatchData * Replace_Parse( } @@ -18,21 +9,3 @@ if(start_ptr == NULL) { -@@ -163,7 +163,7 @@ static PatternMatchData * Replace_Parse( - dummy_end = (dummy_idx + size); - - /* why is this buffer so small? */ -- bzero(hex_buf, 3); -+ memset(hex_buf, 0, 3); - memset(hex_buf, '0', 2); - - /* BEGIN BAD JUJU..... */ -@@ -269,7 +269,7 @@ static PatternMatchData * Replace_Parse( - strtol(hex_buf, (char **) NULL, 16)&0xFF; - - dummy_size++; -- bzero(hex_buf, 3); -+ memset(hex_buf, 0, 3); - memset(hex_buf, '0', 2); - } - else |