Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/nc the tls ifdef was a bit too aggressive.
details: https://anonhg.NetBSD.org/src/rev/af0fb95e86f3
branches: trunk
changeset: 351314:af0fb95e86f3
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 09 17:27:30 2017 +0000
description:
the tls ifdef was a bit too aggressive.
diffstat:
usr.bin/nc/netcat.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 50a5fbfbed05 -r af0fb95e86f3 usr.bin/nc/netcat.c
--- a/usr.bin/nc/netcat.c Thu Feb 09 15:24:08 2017 +0000
+++ b/usr.bin/nc/netcat.c Thu Feb 09 17:27:30 2017 +0000
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: netcat.c,v 1.2 2017/02/06 16:03:40 christos Exp $");
+__RCSID("$NetBSD: netcat.c,v 1.3 2017/02/09 17:27:30 christos Exp $");
/*
* Re-written nc(1) for OpenBSD. Original implementation by
@@ -709,8 +709,8 @@
}
if (Fflag)
fdpass(s);
+ else {
#ifdef CRYPTO
- else {
if (usetls)
tls_setup_client(tls_ctx, s, host);
if (!zflag)
@@ -725,8 +725,11 @@
tls_free(tls_ctx);
tls_ctx = NULL;
}
+#else
+ if (!zflag)
+ readwrite(s, NULL);
+#endif
}
-#endif
}
}
Home |
Main Index |
Thread Index |
Old Index