resolver: check for socketpair.

Avoid a potential access of uninitilaized value.