[openssh-commits] [openssh] branch master updated: add some parentheses to clarify a && || condition
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jul 8 10:29:08 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new b9e2a1f92 add some parentheses to clarify a && || condition
b9e2a1f92 is described below
commit b9e2a1f923e0f86104dbd25c07d4772457255ae6
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Jul 8 10:27:56 2026 +1000
add some parentheses to clarify a && || condition
Spotted by Harish Yadav
---
openbsd-compat/fake-rfc2553.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openbsd-compat/fake-rfc2553.c b/openbsd-compat/fake-rfc2553.c
index 5197c3b37..4065a19fe 100644
--- a/openbsd-compat/fake-rfc2553.c
+++ b/openbsd-compat/fake-rfc2553.c
@@ -51,7 +51,7 @@ int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
struct hostent *hp;
char tmpserv[16];
- if (sa->sa_family != AF_UNSPEC && sa->sa_family != AF_INET ||
+ if ((sa->sa_family != AF_UNSPEC && sa->sa_family != AF_INET) ||
salen < sizeof(struct sockaddr_in))
return (EAI_FAMILY);
if (serv != NULL) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list