diff options
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 | } |