projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not go via network to lookup loopback
[oweals/gnunet.git]
/
src
/
resolver
/
gnunet-service-resolver.c
diff --git
a/src/resolver/gnunet-service-resolver.c
b/src/resolver/gnunet-service-resolver.c
index ed7cbbe8fa5798bb1f5587e153a05ecf7ddba96c..304f11b7b4a1bb7d0cd67f1fde7e532f3c3c5e68 100644
(file)
--- a/
src/resolver/gnunet-service-resolver.c
+++ b/
src/resolver/gnunet-service-resolver.c
@@
-58,7
+58,11
@@
getnameinfo_resolve (struct IPCache *cache)
{
char hostname[256];
- if (0 == getnameinfo (cache->sa, cache->salen, hostname, 255, NULL, 0, 0))
+ if (0 == getnameinfo (cache->sa,
+ cache->salen,
+ hostname,
+ sizeof(hostname),
+ NULL, 0, 0))
cache->addr = GNUNET_strdup (hostname);
}
#endif