summaryrefslogtreecommitdiff
path: root/netkit-ftp-0.17-data.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:06:58 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:06:58 +0000
commitac180a0ccc7b9d6d1a7e2c0ba34a0e617fb87b2a (patch)
tree9de49e1f2fc574f4e68e0c5eb903cb537c8c2695 /netkit-ftp-0.17-data.patch
parent72d830c7e64b038eb96c0f36e0c1a0ab225238e3 (diff)
automatic import of ftpopeneuler24.03_LTS
Diffstat (limited to 'netkit-ftp-0.17-data.patch')
-rw-r--r--netkit-ftp-0.17-data.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/netkit-ftp-0.17-data.patch b/netkit-ftp-0.17-data.patch
new file mode 100644
index 0000000..43157f8
--- /dev/null
+++ b/netkit-ftp-0.17-data.patch
@@ -0,0 +1,24 @@
+--- netkit-ftp-0.17/ftp/ftp.c.data 2005-12-02 15:31:27.000000000 +0100
++++ netkit-ftp-0.17/ftp/ftp.c 2005-12-02 15:35:46.000000000 +0100
+@@ -1223,6 +1223,7 @@
+ static int
+ initconn(void)
+ {
++ int rc;
+ u_char *p, *a;
+ int result, tmpno = 0;
+ socklen_t len;
+@@ -1240,6 +1241,13 @@
+ }
+ #endif
+ if (passivemode) {
++ if (data >= 0){
++ rc = close (data);
++ data = -1;
++ if (rc == -1){
++ perror ("ftp: close");
++ }
++ }
+ data_addr = hisctladdr;
+ data = socket(data_addr.su_family, SOCK_STREAM, 0);
+ if (data < 0) {