[xmlrpc-c/f16] backported IPv6 server related patch
ensc
ensc at fedoraproject.org
Sat May 26 10:31:29 UTC 2012
commit 422854b729895dd01491d17f8fedbfacbbb81332
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Sat May 26 12:31:24 2012 +0200
backported IPv6 server related patch
ipv6-parse.patch | 22 ++++++++++++++++++++++
xmlrpc-c.spec | 7 ++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/ipv6-parse.patch b/ipv6-parse.patch
new file mode 100644
index 0000000..35e443a
--- /dev/null
+++ b/ipv6-parse.patch
@@ -0,0 +1,22 @@
+commit 2b92ed9855f4decbab5ba46d0cbf491f3fd6044b
+Author: giraffedata <giraffedata at 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;
diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec
index 1435cd3..0bedd52 100644
--- a/xmlrpc-c.spec
+++ b/xmlrpc-c.spec
@@ -6,7 +6,7 @@
Summary: A lightweight RPC library based on XML and HTTP
Name: xmlrpc-c
Version: 1.27.7
-Release: %release_func 1600.svn%svnrev
+Release: %release_func 1601.svn%svnrev
# See COPYING for details.
# The Python 1.5.2 license used by a few files is just BSD.
License: BSD and MIT
@@ -22,6 +22,7 @@ Source100: dfs.cc
Source101: dso-fixup
Patch0: xmlrpc-boolean-meaning.patch
+Patch2: ipv6-parse.patch
Patch100: xmlrpc-c-cmake.patch
Patch102: xmlrpc-c-printf-size_t.patch
@@ -117,6 +118,7 @@ This package contains some handy XML-RPC demo applications.
%setup -q
%patch0 -p1
+%patch2 -p1
%patch100 -p1
%patch102 -p1
@@ -244,6 +246,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat May 26 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 1.27.7-1601.svn2185
+- backported IPv6 server related patch
+
* Wed Jan 4 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 1.27.7-1600.svn2185
- updated to 1.27.7; only build fixes not affecting us
- backported fix for "doesn't accept 'b/f' to mean boolean false"
More information about the scm-commits
mailing list