Module Name:    src
Committed By:   christos
Date:           Tue May 16 18:52:09 UTC 2023

Modified Files:
        src/usr.bin/ftp: ssl.c

Log Message:
Ignore EOF from remote.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/ftp/ssl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/ftp/ssl.c
diff -u src/usr.bin/ftp/ssl.c:1.15 src/usr.bin/ftp/ssl.c:1.16
--- src/usr.bin/ftp/ssl.c:1.15	Fri May  5 11:46:06 2023
+++ src/usr.bin/ftp/ssl.c	Tue May 16 14:52:09 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: ssl.c,v 1.15 2023/05/05 15:46:06 lukem Exp $	*/
+/*	$NetBSD: ssl.c,v 1.16 2023/05/16 18:52:09 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ssl.c,v 1.15 2023/05/05 15:46:06 lukem Exp $");
+__RCSID("$NetBSD: ssl.c,v 1.16 2023/05/16 18:52:09 christos Exp $");
 #endif
 
 #include <err.h>
@@ -639,6 +639,9 @@ fetch_start_ssl(int sock, const char *se
 		/* Enable peer verification, (using the default callback) */
 		SSL_set_verify(ssl, SSL_VERIFY_PEER, NULL);
 	}
+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
+	SSL_set_options(ssl, SSL_OP_IGNORE_UNEXPECTED_EOF);
+#endif
 
 						/* save current socket flags */
 	if ((flags = fcntl(sock, F_GETFL, 0)) == -1) {

Reply via email to