summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-02-19 14:10:23 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-02-19 14:10:23 +0000
commit7d42cd4cbf8f2df017a629d2c272307f254dcc94 (patch)
tree7dae223a2d817a2c5052ece887d25f4ac6a2d33b /util.c
parent9b9857d90e911a62a512b91092963a7b13e3e449 (diff)
fixed segfault when getnameinfo fails, should not fail, but did on Solaris 9
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@213 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index c74b824..2a9c7f4 100644
--- a/util.c
+++ b/util.c
@@ -91,7 +91,7 @@ char *addr2string(struct sockaddr *addr, socklen_t len) {
if (getnameinfo(addr, len, addr_buf[i], sizeof(addr_buf[i]),
NULL, 0, NI_NUMERICHOST)) {
debug(DBG_WARN, "getnameinfo failed");
- return NULL;
+ return "getnameinfo_failed";
}
return addr_buf[i];
}