summaryrefslogtreecommitdiffstats
path: root/gss-serv.c
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-05-12 14:06:01 +0200
committerDarren Tucker <dtucker@dtucker.net>2023-07-05 17:54:15 +1000
commita95fc5eed09a0238fb127b6c50e8498432b79dae (patch)
treef27111c628515cc6708e8f9ba2a065c83fcd61ed /gss-serv.c
parent8a6cd08850f576e7527c52a1b086cae82fab290e (diff)
gss-serv.c: `MAXHOSTNAMELEN` -> `HOST_NAME_MAX`
`MAXHOSTNAMELEN` is not defined in POSIX, which breaks on musl: https://pubs.opengroup.org/onlinepubs/9699919799/functions/gethostname.html Bug: https://bugs.gentoo.org/834044
Diffstat (limited to 'gss-serv.c')
-rw-r--r--gss-serv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gss-serv.c b/gss-serv.c
index b5d4bb2d..00e3d118 100644
--- a/gss-serv.c
+++ b/gss-serv.c
@@ -105,7 +105,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, MAXHOSTNAMELEN)) {
+ if (gethostname(lname, HOST_NAME_MAX)) {
gss_release_oid_set(&status, &oidset);
return (-1);
}