fix my broken fix fix

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@718 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2006-03-27 19:49:10 +00:00
parent 0720669c81
commit 5e8c075c60
+1
View File
@@ -62,6 +62,7 @@ int GetAddrInfo( const CS_STRING & sHostname, Csock *pSock, CSSockAddr & csSockA
#else
if( ( pRes->ai_socktype != SOCK_STREAM ) || ( pRes->ai_protocol != IPPROTO_TCP ) )
#endif /* __sun work around broken impl of getaddrinfo */
continue;
if( ( csSockAddr.GetAFRequire() != CSSockAddr::RAF_ANY ) && ( pRes->ai_family != csSockAddr.GetAFRequire() ) )
continue; // they requested a special type, so be certain we woop past anything unwanted