Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/blacklist/diff amend the patch to close.
details: https://anonhg.NetBSD.org/src/rev/da11ebf836c2
branches: trunk
changeset: 354713:da11ebf836c2
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 26 17:12:05 2017 +0000
description:
amend the patch to close.
diffstat:
external/bsd/blacklist/diff/ssh.diff | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r cd5a5ee9f9d7 -r da11ebf836c2 external/bsd/blacklist/diff/ssh.diff
--- a/external/bsd/blacklist/diff/ssh.diff Mon Jun 26 17:10:39 2017 +0000
+++ b/external/bsd/blacklist/diff/ssh.diff Mon Jun 26 17:12:05 2017 +0000
@@ -1,6 +1,6 @@
--- /dev/null 2015-01-22 23:10:33.000000000 -0500
+++ dist/pfilter.c 2015-01-22 23:46:03.000000000 -0500
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,32 @@
+#include "namespace.h"
+#include "includes.h"
+#include "ssh.h"
@@ -28,6 +28,10 @@
+ // XXX: 3?
+ fd = packet_connection_is_on_socket() ? packet_get_connection_in() : 3;
+ (void)blacklist_r(blstate, a, fd, "ssh");
++ if (a == 0) {
++ blacklist_close(blstate);
++ blstate = NULL;
++ }
+}
--- /dev/null 2015-01-20 21:14:44.000000000 -0500
+++ dist/pfilter.h 2015-01-20 20:16:20.000000000 -0500
Home |
Main Index |
Thread Index |
Old Index