aboutsummaryrefslogtreecommitdiffstats
path: root/package/dropbear/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-31 12:05:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-31 12:05:54 +0000
commit8fc2981bcd63547d9e45896a261918342e8137aa (patch)
tree95a485f4753c3ee2648cd615d547174219d000a7 /package/dropbear/patches
parent19eaf1c5f78afb7133e9208dd4d94938c19b3d08 (diff)
downloadupstream-8fc2981bcd63547d9e45896a261918342e8137aa.tar.gz
upstream-8fc2981bcd63547d9e45896a261918342e8137aa.tar.bz2
upstream-8fc2981bcd63547d9e45896a261918342e8137aa.zip
dropbear: - split port argument at the rightmost colon, allows binding to specific IPv6 addresses - don't use uci ipaddr var but resolve ifname and get addresses from it (#9853)
SVN-Revision: 27843
Diffstat (limited to 'package/dropbear/patches')
-rw-r--r--package/dropbear/patches/300-ipv6_addr_port_split.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/dropbear/patches/300-ipv6_addr_port_split.patch b/package/dropbear/patches/300-ipv6_addr_port_split.patch
new file mode 100644
index 0000000000..7da435ab15
--- /dev/null
+++ b/package/dropbear/patches/300-ipv6_addr_port_split.patch
@@ -0,0 +1,11 @@
+--- a/svr-runopts.c
++++ b/svr-runopts.c
+@@ -325,7 +325,7 @@ static void addportandaddress(char* spec
+ myspec = m_strdup(spec);
+
+ /* search for ':', that separates address and port */
+- svr_opts.ports[svr_opts.portcount] = strchr(myspec, ':');
++ svr_opts.ports[svr_opts.portcount] = strrchr(myspec, ':');
+
+ if (svr_opts.ports[svr_opts.portcount] == NULL) {
+ /* no ':' -> the whole string specifies just a port */