aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-02-15 00:00:45 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-16 22:23:17 +0100
commitc188391a9fad6dcfa4b77b6180c19e0538e25caa (patch)
treec702d7e34a3ffa142c5a7520788557b7e95a7d1d /lib/ftp.c
parent03564deba2039e3530bb166ddaddd0ec58ff045c (diff)
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
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c3efdc4e9..537fd82d1 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -291,7 +291,7 @@ static CURLcode AcceptServerConnect(struct connectdata *conn)
conn->sock[SECONDARYSOCKET] = s;
(void)curlx_nonblock(s, TRUE); /* enable non-blocking */
- conn->sock_accepted[SECONDARYSOCKET] = TRUE;
+ conn->sock_accepted = TRUE;
if(data->set.fsockopt) {
int error = 0;