You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
594 B
Diff
15 lines
594 B
Diff
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 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) {
|
|
- return (SASL_FAIL);
|
|
+ if (get_fqhostname (name, MAXHOSTNAMELEN, 1) != 0) {
|
|
+ gethostname(name, MAXHOSTNAMELEN);
|
|
}
|
|
|
|
result = _sasl_strdup(name, &conn->clientFQDN, NULL);
|