Fix the mismatch types

This commit is contained in:
Max Lv
2016-05-06 15:10:09 +08:00
parent bb50fc22ca
commit e3deb0668d
2 changed files with 14 additions and 9 deletions
+2 -1
View File
@@ -417,7 +417,8 @@ static remote_t *connect_to_remote(struct addrinfo *res,
// setup remote socks
setnonblocking(sockfd);
bind_to_address(sockfd, bind_address);
if (bind_to_address(sockfd, bind_address) == -1)
ERROR("bind_to_address");
#ifdef SET_INTERFACE
if (iface) {
if (setinterface(sockfd, iface) == -1)