projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
poll PIDs for status information
[oweals/gnunet.git]
/
src
/
util
/
common_logging.c
diff --git
a/src/util/common_logging.c
b/src/util/common_logging.c
index 8ea0991224201e7d585580a6b4d9f135ed09a2e5..c77464eb54bdb028289cedf08e339ec25ffad380 100644
(file)
--- a/
src/util/common_logging.c
+++ b/
src/util/common_logging.c
@@
-417,6
+417,9
@@
const char *GNUNET_a2s (const struct sockaddr *addr,
static char b2[6];
const struct sockaddr_in * v4;
const struct sockaddr_in6 *v6;
+
+ if (addr == NULL)
+ return _("unknown address");
switch (addr->sa_family)
{
case AF_INET: