mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:33:35 +03:00
ftp: convert 'sock_accepted' to a plain boolean
This was an array indexed with sockindex but it was only ever used for the secondary socket. Closes #4929
This commit is contained in:
parent
03564deba2
commit
c188391a9f
3 changed files with 5 additions and 6 deletions
|
|
@ -925,8 +925,6 @@ struct connectdata {
|
|||
curl_socket_t sock[2]; /* two sockets, the second is used for the data
|
||||
transfer when doing FTP */
|
||||
curl_socket_t tempsock[2]; /* temporary sockets for happy eyeballs */
|
||||
bool sock_accepted[2]; /* TRUE if the socket on this index was created with
|
||||
accept() */
|
||||
Curl_recv *recv[2];
|
||||
Curl_send *send[2];
|
||||
|
||||
|
|
@ -1081,6 +1079,8 @@ struct connectdata {
|
|||
handle */
|
||||
BIT(writechannel_inuse); /* whether the write channel is in use by an easy
|
||||
handle */
|
||||
BIT(sock_accepted); /* TRUE if the SECONDARYSOCKET was created with
|
||||
accept() */
|
||||
};
|
||||
|
||||
/* The end of connectdata. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue