[evolution-data-server] 2009-05-06 Jeff Cai <jeff cai sun com>
- From: Jeff Cai <jeffcai src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] 2009-05-06 Jeff Cai <jeff cai sun com>
- Date: Wed, 6 May 2009 09:25:18 -0400 (EDT)
commit 4bbaca01286e914a6c491f1ccc9a374b78dd4cb5
Author: Jeff Cai <jeff cai sun com>
Date: Wed May 6 21:24:48 2009 +0800
2009-05-06 Jeff Cai <jeff cai sun com>
** Fix for bug #581420
* camel-net-utils.c: (cs_getaddrinfo):
On Solaris, the service name 'http' or 'https' is not defined. Use
the port as the service name directly.
---
camel/ChangeLog | 8 ++++++++
camel/camel-net-utils.c | 9 +++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 17b9be8..3535bfa 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,11 @@
+2009-05-06 Jeff Cai <jeff cai sun com>
+
+ ** Fix for bug #581420
+
+ * camel-net-utils.c: (cs_getaddrinfo):
+ On Solaris, the service name 'http' or 'https' is not defined. Use
+ the port as the service name directly.
+
2009-04-27 Milan Crha <mcrha redhat com>
** Part of fix for bug #478239
diff --git a/camel/camel-net-utils.c b/camel/camel-net-utils.c
index 6a355d6..d2d9e79 100644
--- a/camel/camel-net-utils.c
+++ b/camel/camel-net-utils.c
@@ -638,6 +638,15 @@ cs_getaddrinfo(void *data)
struct _addrinfo_msg *info = data;
info->result = getaddrinfo(info->name, info->service, info->hints, info->res);
+
+ /* On Solaris, the service name 'http' or 'https' is not defined.
+ Use the port as the service name directly. */
+ if (info->result && info->service) {
+ if (strcmp (info->service, "http") == 0)
+ info->result = getaddrinfo(info->name, "80", info->hints, info->res);
+ else if (strcmp (info->service, "https") == 0)
+ info->result = getaddrinfo(info->name, "443", info->hints, info->res);
+ }
if (info->cancelled) {
cs_freeinfo(info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]