patch-src_snort_c 808 B

1234567891011121314151617181920
  1. --- snort-2.8.5.1.orig/src/snort.c 2009-10-19 19:44:03.000000000 +0200
  2. +++ snort-2.8.5.1/src/snort.c 2009-12-27 17:17:42.000000000 +0100
  3. @@ -3581,7 +3581,7 @@ static void SnortCleanup(int exit_val)
  4. struct timeval difftime;
  5. struct timezone tz;
  6. - bzero((char *) &tz, sizeof(tz));
  7. + memset((char *) &tz, 0, sizeof(tz));
  8. gettimeofday(&endtime, &tz);
  9. TIMERSUB(&endtime, &starttime, &difftime);
  10. @@ -3628,7 +3628,7 @@ static void SnortCleanup(int exit_val)
  11. sfActionQueueDestroy (decoderActionQ);
  12. mempool_destroy (&decoderAlertMemPool);
  13. decoderActionQ = NULL;
  14. - bzero(&decoderAlertMemPool, sizeof(decoderAlertMemPool));
  15. + memset(&decoderAlertMemPool, 0, sizeof(decoderAlertMemPool));
  16. }
  17. /* Print Statistics */