diff options
Diffstat (limited to 'netkit-ftp-0.17-sigseg.patch')
-rw-r--r-- | netkit-ftp-0.17-sigseg.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/netkit-ftp-0.17-sigseg.patch b/netkit-ftp-0.17-sigseg.patch new file mode 100644 index 0000000..0972eb1 --- /dev/null +++ b/netkit-ftp-0.17-sigseg.patch @@ -0,0 +1,16 @@ +--- netkit-ftp-0.17-orig/ftp/ftp.c 2007-08-06 23:32:49.000000000 +0200 ++++ netkit-ftp-0.17/ftp/ftp.c 2007-08-06 23:31:06.000000000 +0200 +@@ -483,8 +483,10 @@ getreply(int expecteof) + return (0); + } + lostpeer(0); +- fclose(cout); +- cout = NULL; ++ if (cout) { ++ fclose(cout); ++ cout = NULL; ++ } + if (verbose) { + printf("421 Service not available, remote server has closed connection\n"); + (void) fflush(stdout); + |