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

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