}
#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]);
/* 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));
struct SessionHandle *data = conn->data;
CURLcode result;
- if(getsockname(conn->firstsocket,
+ if(getsockname(conn->sock[FIRSTSOCKET],
(struct sockaddr *)LOCAL_ADDR, &l) < 0)
perror("getsockname()");