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

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