[openssh-commits] [openssh] 09/09: upstream: Pass actual size of the buffer to hostname() instead of a
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Feb 12 05:00:08 AEDT 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit f1b9e0f7f1f1ed5be2bd1c39bda03fc99a1cf5d8
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Wed Feb 11 16:57:38 2026 +0000
upstream: Pass actual size of the buffer to hostname() instead of a
define that's probably the same. ok millert@ djm@
OpenBSD-Commit-ID: 7c97b22439100b4193404ccfa1e5f539c5a8d039
---
gss-serv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gss-serv.c b/gss-serv.c
index ae3465c3b..f9ae303b5 100644
--- a/gss-serv.c
+++ b/gss-serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gss-serv.c,v 1.36 2026/02/08 15:28:01 dtucker Exp $ */
+/* $OpenBSD: gss-serv.c,v 1.37 2026/02/11 16:57:38 dtucker Exp $ */
/*
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -107,7 +107,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
gss_create_empty_oid_set(&status, &oidset);
gss_add_oid_set_member(&status, ctx->oid, &oidset);
- if (gethostname(lname, HOST_NAME_MAX)) {
+ if (gethostname(lname, sizeof(lname))) {
gss_release_oid_set(&status, &oidset);
return (-1);
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list