diff options
author | venaas <venaas> | 2008-02-19 14:10:23 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-02-19 14:10:23 +0000 |
commit | 7d42cd4cbf8f2df017a629d2c272307f254dcc94 (patch) | |
tree | 7dae223a2d817a2c5052ece887d25f4ac6a2d33b | |
parent | 9b9857d90e911a62a512b91092963a7b13e3e449 (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
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } |