summaryrefslogtreecommitdiff
path: root/debian/patches/avoid-extra-ports.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/avoid-extra-ports.patch')
-rw-r--r--debian/patches/avoid-extra-ports.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/debian/patches/avoid-extra-ports.patch b/debian/patches/avoid-extra-ports.patch
new file mode 100644
index 000000000..d8df325ac
--- /dev/null
+++ b/debian/patches/avoid-extra-ports.patch
@@ -0,0 +1,67 @@
1From 877a000e9474ed5e32029f434dbec4de2fb1696f Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Wed, 27 May 2020 21:59:11 +0000
4Subject: upstream: Do not call process_queued_listen_addrs() for every
5
6included file from sshd_config; patch from Jakub Jelen
7
8OpenBSD-Commit-ID: 0ff603d6f06a7fab4881f12503b53024799d0a49
9
10Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=0a9a611619b0a1fecd0195ec86a9885f5d681c84
11Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=3169
12Bug-Debian: https://bugs.debian.org/962035
13Bug-Ubuntu: https://bugs.launchpad.net/bugs/1876320
14Last-Update: 2020-06-07
15
16Patch-Name: avoid-extra-ports.patch
17---
18 servconf.c | 10 +++++-----
19 1 file changed, 5 insertions(+), 5 deletions(-)
20
21diff --git a/servconf.c b/servconf.c
22index c290e9786..5f3336365 100644
23--- a/servconf.c
24+++ b/servconf.c
25@@ -1,5 +1,5 @@
26
27-/* $OpenBSD: servconf.c,v 1.363 2020/04/17 03:30:05 djm Exp $ */
28+/* $OpenBSD: servconf.c,v 1.364 2020/05/27 21:59:11 djm Exp $ */
29 /*
30 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
31 * All rights reserved
32@@ -75,8 +75,8 @@ static void add_listen_addr(ServerOptions *, const char *,
33 const char *, int);
34 static void add_one_listen_addr(ServerOptions *, const char *,
35 const char *, int);
36-void parse_server_config_depth(ServerOptions *options, const char *filename,
37- struct sshbuf *conf, struct include_list *includes,
38+static void parse_server_config_depth(ServerOptions *options,
39+ const char *filename, struct sshbuf *conf, struct include_list *includes,
40 struct connection_info *connectinfo, int flags, int *activep, int depth);
41
42 /* Use of privilege separation or not */
43@@ -2623,7 +2623,7 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
44 #undef M_CP_STRARRAYOPT
45
46 #define SERVCONF_MAX_DEPTH 16
47-void
48+static void
49 parse_server_config_depth(ServerOptions *options, const char *filename,
50 struct sshbuf *conf, struct include_list *includes,
51 struct connection_info *connectinfo, int flags, int *activep, int depth)
52@@ -2649,7 +2649,6 @@ parse_server_config_depth(ServerOptions *options, const char *filename,
53 if (bad_options > 0)
54 fatal("%s: terminating, %d bad configuration options",
55 filename, bad_options);
56- process_queued_listen_addrs(options);
57 }
58
59 void
60@@ -2660,6 +2659,7 @@ parse_server_config(ServerOptions *options, const char *filename,
61 int active = connectinfo ? 0 : 1;
62 parse_server_config_depth(options, filename, conf, includes,
63 connectinfo, 0, &active, 0);
64+ process_queued_listen_addrs(options);
65 }
66
67 static const char *