We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef2449 commit f1b9e0fCopy full SHA for f1b9e0f
gss-serv.c
@@ -1,4 +1,4 @@
1
-/* $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 $ */
2
3
/*
4
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -107,7 +107,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
107
gss_create_empty_oid_set(&status, &oidset);
108
gss_add_oid_set_member(&status, ctx->oid, &oidset);
109
110
- if (gethostname(lname, HOST_NAME_MAX)) {
+ if (gethostname(lname, sizeof(lname))) {
111
gss_release_oid_set(&status, &oidset);
112
return (-1);
113
}
0 commit comments