Fixed iterator code for netlink attributes