1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-30 23:56:27 +02:00
openwrt-xburst/package/dropbear/patches/300-ipv6_addr_port_split.patch

12 lines
425 B
Diff
Raw Normal View History

--- 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 */