Loading lib/connect.c +6 −2 Original line number Diff line number Diff line Loading @@ -216,7 +216,7 @@ static CURLcode bindlocal(struct connectdata *conn, int sockfd) { #ifdef HAVE_INET_NTOA bool bindworked = FALSE; struct SessionHandle *data = conn->data; /************************************************************* Loading Loading @@ -285,6 +285,8 @@ static CURLcode bindlocal(struct connectdata *conn, /* we succeeded to bind */ struct sockaddr_in6 add; bindworked = TRUE; size = sizeof(add); if(getsockname(sockfd, (struct sockaddr *) &add, (socklen_t *)&size)<0) { Loading @@ -306,6 +308,8 @@ static CURLcode bindlocal(struct connectdata *conn, /* we succeeded to bind */ struct sockaddr_in add; bindworked = TRUE; size = sizeof(add); if(getsockname(sockfd, (struct sockaddr *) &add, (socklen_t *)&size)<0) { Loading @@ -315,7 +319,7 @@ static CURLcode bindlocal(struct connectdata *conn, } } #endif else { if(!bindworked) { switch(errno) { case EBADF: failf(data, "Invalid descriptor: %d", errno); Loading Loading
lib/connect.c +6 −2 Original line number Diff line number Diff line Loading @@ -216,7 +216,7 @@ static CURLcode bindlocal(struct connectdata *conn, int sockfd) { #ifdef HAVE_INET_NTOA bool bindworked = FALSE; struct SessionHandle *data = conn->data; /************************************************************* Loading Loading @@ -285,6 +285,8 @@ static CURLcode bindlocal(struct connectdata *conn, /* we succeeded to bind */ struct sockaddr_in6 add; bindworked = TRUE; size = sizeof(add); if(getsockname(sockfd, (struct sockaddr *) &add, (socklen_t *)&size)<0) { Loading @@ -306,6 +308,8 @@ static CURLcode bindlocal(struct connectdata *conn, /* we succeeded to bind */ struct sockaddr_in add; bindworked = TRUE; size = sizeof(add); if(getsockname(sockfd, (struct sockaddr *) &add, (socklen_t *)&size)<0) { Loading @@ -315,7 +319,7 @@ static CURLcode bindlocal(struct connectdata *conn, } } #endif else { if(!bindworked) { switch(errno) { case EBADF: failf(data, "Invalid descriptor: %d", errno); Loading