add socks5-v1.0r10.patch5.txt patch
-- This patch prevents some file handles from accidentally being closed.
This commit is contained in:
parent
a0e70c229d
commit
f84f801f03
28
security/socks5/patches/patch-clients_ftp_ftp.c
Normal file
28
security/socks5/patches/patch-clients_ftp_ftp.c
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-clients_ftp_ftp.c,v 1.1 2000/08/03 00:04:47 brad Exp $
|
||||
|
||||
This patch prevents some file handles from accidentally being closed.
|
||||
|
||||
--- clients/ftp/ftp.c.orig Wed Aug 2 19:11:35 2000
|
||||
+++ clients/ftp/ftp.c Wed Aug 2 19:14:29 2000
|
||||
@@ -913,6 +913,10 @@
|
||||
if (closefunc != NULL)
|
||||
(*closefunc)(fin);
|
||||
fclose(dout);
|
||||
+ if(data >= 0) {
|
||||
+ close(data);
|
||||
+ data = -1;
|
||||
+ }
|
||||
getreply(0);
|
||||
Signal(SIGINT, oldintr);
|
||||
if (oldintp)
|
||||
@@ -1252,6 +1256,10 @@
|
||||
|
||||
gettimeofday(&stop, (struct timezone *)0);
|
||||
fclose(din);
|
||||
+ if(data >= 0) {
|
||||
+ close(data);
|
||||
+ data = -1;
|
||||
+ }
|
||||
getreply(0);
|
||||
|
||||
if (bytes > 0 && is_retr) {
|
Loading…
Reference in New Issue
Block a user