diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-09 22:01:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-09 22:01:41 +0000 |
commit | c9f75566447fd3a9c5c304dbc8e31fd68b6aa3ed (patch) | |
tree | 3966560120dc3abbd2bd20983ccf95bc25b731d1 /src/util/gnunet-service-resolver.c | |
parent | bc6a7f8d6cfbfc92128d1e6c495ee94c5508e26f (diff) | |
download | gnunet-c9f75566447fd3a9c5c304dbc8e31fd68b6aa3ed.tar.gz gnunet-c9f75566447fd3a9c5c304dbc8e31fd68b6aa3ed.zip |
-fix timeout handling for resolver
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r-- | src/util/gnunet-service-resolver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c index 0392e0bf1..cade20738 100644 --- a/src/util/gnunet-service-resolver.c +++ b/src/util/gnunet-service-resolver.c | |||
@@ -152,7 +152,7 @@ gethostbyaddr_resolve (struct IPCache *cache) | |||
152 | ent = gethostbyaddr (cache->ip, | 152 | ent = gethostbyaddr (cache->ip, |
153 | cache->ip_len, | 153 | cache->ip_len, |
154 | cache->af); | 154 | cache->af); |
155 | if (ent != NULL) | 155 | if (NULL != ent) |
156 | cache->addr = GNUNET_strdup (ent->h_name); | 156 | cache->addr = GNUNET_strdup (ent->h_name); |
157 | } | 157 | } |
158 | #endif | 158 | #endif |
@@ -167,11 +167,11 @@ static void | |||
167 | cache_resolve (struct IPCache *cache) | 167 | cache_resolve (struct IPCache *cache) |
168 | { | 168 | { |
169 | #if HAVE_GETNAMEINFO | 169 | #if HAVE_GETNAMEINFO |
170 | if (cache->addr == NULL) | 170 | if (NULL == cache->addr) |
171 | getnameinfo_resolve (cache); | 171 | getnameinfo_resolve (cache); |
172 | #endif | 172 | #endif |
173 | #if HAVE_GETHOSTBYADDR | 173 | #if HAVE_GETHOSTBYADDR |
174 | if (cache->addr == NULL) | 174 | if (NULL == cache->addr) |
175 | gethostbyaddr_resolve (cache); | 175 | gethostbyaddr_resolve (cache); |
176 | #endif | 176 | #endif |
177 | } | 177 | } |