patch-src_parser_IpAddrSet_c 874 B

12345678910111213141516
  1. --- snort-2.8.5.2.orig/src/parser/IpAddrSet.c 2009-07-07 17:37:07.000000000 +0200
  2. +++ snort-2.8.5.2/src/parser/IpAddrSet.c 2010-01-19 20:20:50.000000000 +0100
  3. @@ -388,11 +388,11 @@ int ParseIP(char *paddr, IpAddrSet *ias,
  4. /* protecting against malicious DNS servers */
  5. if(host_info->h_length <= (int)sizeof(sin.sin_addr))
  6. {
  7. - bcopy(host_info->h_addr, (char *) &sin.sin_addr, host_info->h_length);
  8. + memcpy((char *) &sin.sin_addr, host_info->h_addr, host_info->h_length);
  9. }
  10. else
  11. {
  12. - bcopy(host_info->h_addr, (char *) &sin.sin_addr, sizeof(sin.sin_addr));
  13. + memcpy((char *) &sin.sin_addr, host_info->h_addr, sizeof(sin.sin_addr));
  14. }
  15. }
  16. /* Using h_errno */