about summary refs log tree commit diff
path: root/resolv/res_hconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_hconf.c')
-rw-r--r--resolv/res_hconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index b814f62dd3..8da2727a79 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -556,7 +556,7 @@ _res_hconf_reorder_addrs (struct hostent *hp)
 	goto cleanup1;
 
       /* Copy usable interfaces in ifaddrs structure.  */
-      for (cur_ifr = ifr, i = 0;  i < num; ++cur_ifr, ++i)
+      for (cur_ifr = ifr, i = 0; i < num; cur_ifr = __if_nextreq (cur_ifr), ++i)
 	{
 	  if (cur_ifr->ifr_addr.sa_family != AF_INET)
 	    continue;