patch-lib_isc_unix_ifiter_ioctl_c 648 B

1234567891011121314
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- bind-9.4.1.orig/lib/isc/unix/ifiter_ioctl.c 2006-02-04 00:51:38.000000000 +0100
  3. +++ bind-9.4.1/lib/isc/unix/ifiter_ioctl.c 2008-10-08 14:56:12.000000000 +0200
  4. @@ -479,8 +479,8 @@ linux_if_inet6_current(isc_interfaceiter
  5. for (i = 0; i < 16; i++) {
  6. unsigned char byte;
  7. static const char hex[] = "0123456789abcdef";
  8. - byte = ((index(hex, address[i * 2]) - hex) << 4) |
  9. - (index(hex, address[i * 2 + 1]) - hex);
  10. + byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
  11. + (strchr(hex, address[i * 2 + 1]) - hex);
  12. addr6.s6_addr[i] = byte;
  13. }
  14. iter->current.af = AF_INET6;