bind-susv3-legacy.patch 868 B

1234567891011121314151617181920212223
  1. diff -Nura bind-9.5.1-P1/lib/isc/unix/ifiter_ioctl.c bind-9.5.1-P1.nosusv3/lib/isc/unix/ifiter_ioctl.c
  2. --- bind-9.5.1-P1/lib/isc/unix/ifiter_ioctl.c 2007-08-30 03:02:28.000000000 -0300
  3. +++ bind-9.5.1-P1.nosusv3/lib/isc/unix/ifiter_ioctl.c 2009-03-04 16:31:20.000000000 -0200
  4. @@ -17,6 +17,8 @@
  5. /* $Id: ifiter_ioctl.c,v 1.58 2007/08/30 06:02:28 marka Exp $ */
  6. +#include <string.h>
  7. +
  8. /*! \file
  9. * \brief
  10. * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
  11. @@ -479,8 +481,8 @@
  12. for (i = 0; i < 16; i++) {
  13. unsigned char byte;
  14. static const char hex[] = "0123456789abcdef";
  15. - byte = ((index(hex, address[i * 2]) - hex) << 4) |
  16. - (index(hex, address[i * 2 + 1]) - hex);
  17. + byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
  18. + (strchr(hex, address[i * 2 + 1]) - hex);
  19. addr6.s6_addr[i] = byte;
  20. }
  21. iter->current.af = AF_INET6;