patch-src_detection-plugins_sp_session_c 538 B

12345678910111213
  1. --- snort-2.8.5.1.orig/src/detection-plugins/sp_session.c 2009-08-10 22:41:45.000000000 +0200
  2. +++ snort-2.8.5.1/src/detection-plugins/sp_session.c 2009-12-27 17:24:07.000000000 +0100
  3. @@ -378,8 +378,8 @@ FILE *OpenSessionFile(Packet *p)
  4. return NULL;
  5. }
  6. - bzero((char *)session_file, STD_BUF);
  7. - bzero((char *)log_path, STD_BUF);
  8. + memset((char *)session_file, 0, STD_BUF);
  9. + memset((char *)log_path, 0, STD_BUF);
  10. /* figure out which way this packet is headed in relation to the homenet */
  11. #ifdef SUP_IP6