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
commit576e67e6f27c4fd3a4f6ee1b80e63ab355855b30 (patch)
tree1acb3c08dc65c2c01744bda212e408da4e8be8f3 /package/dropbear/patches
parent751c44889a41ac4b63ea0f6f3baec87c418303b9 (diff)
downloadupstream-576e67e6f27c4fd3a4f6ee1b80e63ab355855b30.tar.gz
upstream-576e67e6f27c4fd3a4f6ee1b80e63ab355855b30.tar.bz2
upstream-576e67e6f27c4fd3a4f6ee1b80e63ab355855b30.zip
[package] 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27843 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 */