Blame SOURCES/netkit-ftp-0.17-sigseg.patch

4f574c
--- netkit-ftp-0.17-orig/ftp/ftp.c	2007-08-06 23:32:49.000000000 +0200
4f574c
+++ netkit-ftp-0.17/ftp/ftp.c	2007-08-06 23:31:06.000000000 +0200
4f574c
@@ -483,8 +483,10 @@ getreply(int expecteof)
4f574c
 					return (0);
4f574c
 				}
4f574c
 				lostpeer(0);
4f574c
-				fclose(cout);
4f574c
-				cout = NULL;
4f574c
+				if (cout) {
4f574c
+					fclose(cout);
4f574c
+					cout = NULL;
4f574c
+				}
4f574c
 				if (verbose) {
4f574c
 					printf("421 Service not available, remote server has closed connection\n");
4f574c
 					(void) fflush(stdout);
4f574c