aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-24 09:04:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-24 09:04:09 +0000
commitd5d55a856ea70ea6fab1a21821ae3fdb4e921d82 (patch)
tree7138de8ea5417477ba407cdbbed3faa04d41d606 /lib
parentdac045029a14c1fdc03af0323ebecd545464a905 (diff)
adjusted code to the new socket fields in the sessionhandle struct
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c4
-rw-r--r--lib/krb4.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c8c44f51f..d0c6255a8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -728,7 +728,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
}
#ifdef KRB4
- Curl_sec_fflush_fd(conn, conn->secondarysocket);
+ Curl_sec_fflush_fd(conn, conn->sock[SECONDARYSOCKET]);
#endif
/* shut down the socket to inform the server we're done */
sclose(conn->sock[SECONDARYSOCKET]);
@@ -1334,7 +1334,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
/* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case
we fail before the true secondary stuff is made */
- conn->secondarysocket = portsock;
+ conn->sock[SECONDARYSOCKET] = portsock;
if(!sa_filled_in) {
memset((char *)&sa, 0, sizeof(sa));
diff --git a/lib/krb4.c b/lib/krb4.c
index 71fdea131..bf8037d84 100644
--- a/lib/krb4.c
+++ b/lib/krb4.c
@@ -209,7 +209,7 @@ krb4_auth(void *app_data, struct connectdata *conn)
struct SessionHandle *data = conn->data;
CURLcode result;
- if(getsockname(conn->firstsocket,
+ if(getsockname(conn->sock[FIRSTSOCKET],
(struct sockaddr *)LOCAL_ADDR, &l) < 0)
perror("getsockname()");