diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-06 14:22:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-06 14:22:51 +0000 |
commit | 0f9e6bcd1e511abae16ecc4c86056b0c26d73936 (patch) | |
tree | 4ba3af76391ee6c67563316de29b6ad8830cd7f2 /src/util/resolver_api.c | |
parent | f1e619572751f7652db025f66f119d6a0308114b (diff) | |
download | gnunet-0f9e6bcd1e511abae16ecc4c86056b0c26d73936.tar.gz gnunet-0f9e6bcd1e511abae16ecc4c86056b0c26d73936.zip |
-fix non-deterministic peerstore sync failure
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index 7d7c74ad6..8d2986c7b 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -1028,7 +1028,10 @@ GNUNET_RESOLVER_local_fqdn_get () | |||
1028 | gai_strerror (ret)); | 1028 | gai_strerror (ret)); |
1029 | return NULL; | 1029 | return NULL; |
1030 | } | 1030 | } |
1031 | rval = GNUNET_strdup (ai->ai_canonname); | 1031 | if (NULL != ai->ai_canonname) |
1032 | rval = GNUNET_strdup (ai->ai_canonname); | ||
1033 | else | ||
1034 | rval = GNUNET_strdup (hostname); | ||
1032 | freeaddrinfo (ai); | 1035 | freeaddrinfo (ai); |
1033 | return rval; | 1036 | return rval; |
1034 | } | 1037 | } |