patch-src_output-plugins_spo_unified_c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- snort-2.8.5.1.orig/src/output-plugins/spo_unified.c 2009-08-10 22:41:52.000000000 +0200
  2. +++ snort-2.8.5.1/src/output-plugins/spo_unified.c 2009-12-27 17:22:15.000000000 +0100
  3. @@ -302,7 +302,7 @@ static void UnifiedInitFile(UnifiedConfi
  4. FileHeader hdr;
  5. int value;
  6. - bzero(logdir, STD_BUF);
  7. + memset(logdir, 0, STD_BUF);
  8. curr_time = time(NULL);
  9. if(data == NULL)
  10. @@ -398,7 +398,7 @@ void RealUnifiedLogAlert(Packet *p, char
  11. UnifiedConfig *data = (UnifiedConfig *)arg;
  12. UnifiedAlert alertdata;
  13. - bzero(&alertdata, sizeof(alertdata));
  14. + memset(&alertdata, 0, sizeof(alertdata));
  15. if(event != NULL)
  16. {
  17. @@ -483,7 +483,7 @@ void RealUnifiedLogAlert6(Packet *p, cha
  18. UnifiedConfig *data = (UnifiedConfig *)arg;
  19. UnifiedIPv6Alert alertdata;
  20. - bzero(&alertdata, sizeof(alertdata));
  21. + memset(&alertdata, 0, sizeof(alertdata));
  22. if(event != NULL)
  23. {
  24. @@ -1039,7 +1039,7 @@ void UnifiedInitAlertFile(UnifiedConfig
  25. int value;
  26. UnifiedAlertFileHeader hdr;
  27. - bzero(logdir, STD_BUF);
  28. + memset(logdir, 0, STD_BUF);
  29. curr_time = time(NULL);
  30. if(data->nostamp)
  31. @@ -1167,7 +1167,7 @@ void UnifiedInitLogFile(UnifiedConfig *d
  32. int value;
  33. //UnifiedLogFileHeader hdr;
  34. - bzero(logdir, STD_BUF);
  35. + memset(logdir, 0, STD_BUF);
  36. curr_time = time(NULL);
  37. if(data == NULL)