From 4059f8c3ed4f806affe59502a4dc520ba12d920e Mon Sep 17 00:00:00 2001 From: imaginos Date: Sat, 7 Jun 2008 23:35:43 +0000 Subject: [PATCH] missing paren in test git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1087 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Csocket.cpp b/Csocket.cpp index dcc20d05..bd647255 100644 --- a/Csocket.cpp +++ b/Csocket.cpp @@ -194,7 +194,7 @@ int GetAddrInfo( const CS_STRING & sHostname, Csock *pSock, CSSockAddr & csSockA hints.ai_flags = AI_ADDRCONFIG; #endif /* AI_ADDRCONFIG */ - if( pSock && pSock->GetType() == Csock::LISTENER || pSock->GetConState() == Csock::CST_BINDVHOST ) + if( pSock && ( pSock->GetType() == Csock::LISTENER || pSock->GetConState() == Csock::CST_BINDVHOST ) ) { // when doing a dns for bind only, set the AI_PASSIVE flag as suggested by the man page hints.ai_flags |= AI_PASSIVE; }