summaryrefslogtreecommitdiff
path: root/package/dropbear/patches/300-ipv6_addr_port_split.patch
blob: 7da435ab15f8651941d81a186564c2b71b033e40 (plain)
1
2
3
4
5
6
7
8
9
10
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 */