diff options
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index c93ec6e..c57d97e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp | |||
@@ -89,8 +89,8 @@ Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) | |||
89 | sprintf( ibuf, "%d", nPort ); | 89 | sprintf( ibuf, "%d", nPort ); |
90 | 90 | ||
91 | int ret; | 91 | int ret; |
92 | if( ret = DYNLOAD getaddrinfo( sAddr.getStr(), ibuf, &aiHints, &pAddr ) | 92 | if( (ret = DYNLOAD getaddrinfo( |
93 | != 0 ) | 93 | sAddr.getStr(), ibuf, &aiHints, &pAddr )) != 0 ) |
94 | { | 94 | { |
95 | #ifdef WIN32 | 95 | #ifdef WIN32 |
96 | throw Bu::SocketException("Couldn't resolve hostname %s (%d).\n", | 96 | throw Bu::SocketException("Couldn't resolve hostname %s (%d).\n", |