Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp Ignore EOF from remote.
details: https://anonhg.NetBSD.org/src/rev/c47298aed661
branches: trunk
changeset: 375850:c47298aed661
user: christos <christos%NetBSD.org@localhost>
date: Tue May 16 18:52:09 2023 +0000
description:
Ignore EOF from remote.
diffstat:
usr.bin/ftp/ssl.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 9a3d40230161 -r c47298aed661 usr.bin/ftp/ssl.c
--- a/usr.bin/ftp/ssl.c Tue May 16 18:25:54 2023 +0000
+++ b/usr.bin/ftp/ssl.c Tue May 16 18:52:09 2023 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index