Validate structures returned from getaddrinfo(), since they may be corrupt, especially when python has IPv6 support disabled (bug #340899).
portage.sync.controller module
portage.sync.old_tree_timestamp module