Archived
1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
archive/package/dropbear/patches/300-ipv6_addr_port_split.patch
Jo-Philipp Wich 8d9c3fe0b7 [backfire] merge r27843
SVN-Revision: 27844
2011-07-31 12:06:24 +00:00

12 lines
425 B
Diff

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