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

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