diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-28 12:56:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-28 12:56:36 +0100 |
commit | 62d218c2368b3ad1e9802075cef06e3f626fb234 (patch) | |
tree | 4804f063c6e29cd1b17097324d6bd262a3c291b5 /package/snort/patches/patch-src_snort_c | |
parent | b3259201a158cb1a571c2a3b2976fbd7b95a4b80 (diff) | |
parent | 03c7aed5dcad2172bbe1bcd311fabb63fbf6dca0 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/snort/patches/patch-src_snort_c')
-rw-r--r-- | package/snort/patches/patch-src_snort_c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/snort/patches/patch-src_snort_c b/package/snort/patches/patch-src_snort_c new file mode 100644 index 000000000..a3ec23375 --- /dev/null +++ b/package/snort/patches/patch-src_snort_c @@ -0,0 +1,20 @@ +--- snort-2.8.5.1.orig/src/snort.c 2009-10-19 19:44:03.000000000 +0200 ++++ snort-2.8.5.1/src/snort.c 2009-12-27 17:17:42.000000000 +0100 +@@ -3581,7 +3581,7 @@ static void SnortCleanup(int exit_val) + struct timeval difftime; + struct timezone tz; + +- bzero((char *) &tz, sizeof(tz)); ++ memset((char *) &tz, 0, sizeof(tz)); + gettimeofday(&endtime, &tz); + + TIMERSUB(&endtime, &starttime, &difftime); +@@ -3628,7 +3628,7 @@ static void SnortCleanup(int exit_val) + sfActionQueueDestroy (decoderActionQ); + mempool_destroy (&decoderAlertMemPool); + decoderActionQ = NULL; +- bzero(&decoderAlertMemPool, sizeof(decoderAlertMemPool)); ++ memset(&decoderAlertMemPool, 0, sizeof(decoderAlertMemPool)); + } + + /* Print Statistics */ |