Index: ncat_core.c =================================================================== --- ncat_core.c (revision 12925) +++ ncat_core.c (working copy) @@ -88,7 +88,7 @@ assert(sslen); memset(&hints, 0, sizeof(hints)); - hints.ai_family = o.af; + hints.ai_family = af; if (o.nodns) hints.ai_flags |= AI_NUMERICHOST;