Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Apr 29, 2014
1 parent c2b2d0f commit 4057dd1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build-mac/dependencies/cyrus-2.1.25-libetpan.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
diff -ur cyrus-sasl-2.1.25/lib/client.c cyrus-sasl-2.1.25.new/lib/client.c
diff -Naur cyrus-sasl-2.1.25/lib/client.c cyrus-sasl-2.1.25.new/lib/client.c
--- cyrus-sasl-2.1.25/lib/client.c 2011-09-02 05:58:01.000000000 -0700
+++ cyrus-sasl-2.1.25.new/lib/client.c 2013-06-01 23:23:00.000000000 -0700
@@ -504,7 +504,7 @@
+++ cyrus-sasl-2.1.25.new/lib/client.c 2014-04-29 10:52:17.000000000 -0700
@@ -503,8 +503,8 @@

/* get the clientFQDN (serverFQDN was set in _sasl_conn_init) */
memset(name, 0, sizeof(name));
if (get_fqhostname (name, MAXHOSTNAMELEN, 0) != 0) {
- if (get_fqhostname (name, MAXHOSTNAMELEN, 0) != 0) {
- return (SASL_FAIL);
+ if (get_fqhostname (name, MAXHOSTNAMELEN, 1) != 0) {
+ gethostname(name, MAXHOSTNAMELEN);
}

Expand Down

0 comments on commit 4057dd1

Please sign in to comment.