Unbreak connecting to servers.

This commit is contained in:
Jilles Tjoelker 2008-04-03 22:46:43 +02:00
parent 74d60b2329
commit 39aff273d8
1 changed files with 1 additions and 1 deletions

View File

@ -1507,7 +1507,7 @@ serv_connect(struct server_conf *server_p, struct Client *by)
((struct sockaddr_in *)&theiripnum)->sin_port = htons(server_p->port);
/* create a socket for the server connection */
if((F = rb_socket(server_p->aftype, SOCK_STREAM, 0, NULL)) != NULL)
if((F = rb_socket(server_p->aftype, SOCK_STREAM, 0, NULL)) == NULL)
{
ilog_error("opening a stream socket");
return 0;