summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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..ee7d4d5 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 return "getnameinfo_failed";
}
return addr_buf[i];
}