1666a24e9c
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ftp#b1415fc448cd0131b94f8c8bcaede3f1eb394460
17 lines
457 B
Diff
17 lines
457 B
Diff
--- 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);
|
|
|