proxy: Set proxy->upstream_fd before calling proxy_finish_connect_to_upstream

The only thing this affects is a log message
This commit is contained in:
nick
2013-06-18 15:58:38 +01:00
parent f5c434f21c
commit b14bba36ec

View File

@@ -114,9 +114,9 @@ int proxy_connect_to_upstream( struct proxier* proxy )
return 0; return 0;
} }
proxy_finish_connect_to_upstream( proxy, size );
proxy->upstream_fd = fd; proxy->upstream_fd = fd;
sock_set_nonblock( fd, 1 ); sock_set_nonblock( fd, 1 );
proxy_finish_connect_to_upstream( proxy, size );
return 1; return 1;
} }