artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a80f0c
)
fix test: getnameinfo returns a non-zero value on error,
author
djm
<djm@openbsd.org>
Mon, 27 Mar 2023 03:31:05 +0000
(
03:31
+0000)
committer
djm
<djm@openbsd.org>
Mon, 27 Mar 2023 03:31:05 +0000
(
03:31
+0000)
not (neccessarily) -1. From GHPR#384
usr.bin/ssh/addr.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/addr.c
b/usr.bin/ssh/addr.c
index
056f159
..
a50ae8e
100644
(file)
--- a/
usr.bin/ssh/addr.c
+++ b/
usr.bin/ssh/addr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: addr.c,v 1.
6 2022/10/28 02:29:34
djm Exp $ */
+/* $OpenBSD: addr.c,v 1.
7 2023/03/27 03:31:05
djm Exp $ */
/*
* Copyright (c) 2004-2008 Damien Miller <djm@mindrot.org>
@@
-439,7
+439,7
@@
addr_ntop(const struct xaddr *n, char *p, size_t len)
if (p == NULL || len == 0)
return -1;
if (getnameinfo(_SA(&ss), slen, p, len, NULL, 0,
- NI_NUMERICHOST)
== -1
)
+ NI_NUMERICHOST)
!= 0
)
return -1;
return 0;