22 lines
746 B
Diff
22 lines
746 B
Diff
commit 2b92ed9855f4decbab5ba46d0cbf491f3fd6044b
|
|
Author: giraffedata <giraffedata@adbb7d4b-a73a-0410-a071-c5f57c452bd4>
|
|
Date: Sat May 19 02:06:59 2012 +0000
|
|
|
|
Fix parsing of host/port with colons in host portion
|
|
|
|
[backported]
|
|
git-svn-id: https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk@2323 adbb7d4b-a73a-0410-a071-c5f57c452bd4
|
|
|
|
diff --git a/lib/abyss/src/http.c b/lib/abyss/src/http.c
|
|
index 096d93e..6b03e4c 100644
|
|
--- a/lib/abyss/src/http.c
|
|
+++ b/lib/abyss/src/http.c
|
|
@@ -527,7 +527,7 @@ parseHostPort(const char * const hostport,
|
|
|
|
buffer = strdup(hostport);
|
|
|
|
- colonPos = strchr(buffer, ':');
|
|
+ colonPos = strrchr(buffer, ':');
|
|
if (colonPos) {
|
|
const char * p;
|
|
uint32_t port;
|