summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-02 22:30:26 +0000
committerMiles Bader <miles@gnu.org>1997-09-02 22:30:26 +0000
commit2d40ebe2d900c6ec23885459dffb74111b114553 (patch)
tree74754a0dc36e8b9f5fb8d75b4e0680683e144727 /libftpconn
parent4ee24d5a1551dda192ce03f4d1ed0fc06f564c1b (diff)
(ftp_conn_free):
Free the ACTV_DATA_ADDR field. (ftp_conn_create): Initialiaze the ACTV_DATA_ADDR & ACTV_DATA_CONN_QUEUE fields. Initialize USE_PASSIVE field.
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/create.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libftpconn/create.c b/libftpconn/create.c
index 7ceda517..3d49c8a8 100644
--- a/libftpconn/create.c
+++ b/libftpconn/create.c
@@ -50,6 +50,9 @@ ftp_conn_create (const struct ftp_conn_params *params,
new->params = params;
new->hooks = hooks;
new->syshooks_valid = 0;
+ new->use_passive = 1;
+ new->actv_data_addr = 0;
+ new->actv_data_conn_queue = -1;
new->cwd = 0;
new->type = 0;
bzero (&new->syshooks, sizeof new->syshooks);
@@ -79,5 +82,7 @@ ftp_conn_free (struct ftp_conn *conn)
free (conn->line);
if (conn->reply_txt)
free (conn->reply_txt);
+ if (conn->actv_data_addr)
+ free (conn->actv_data_addr);
free (conn);
}