projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b9857d
)
fixed segfault when getnameinfo fails, should not fail, but did on Solaris 9
author
venaas
<venaas>
Tue, 19 Feb 2008 14:10:23 +0000
(14:10 +0000)
committer
venaas
<venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 19 Feb 2008 14:10:23 +0000
(14:10 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@213
e88ac4ed
-0b26-0410-9574-
a7f39faa03bf
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index
c74b824
..
2a9c7f4
100644
(file)
--- 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];
}