mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-17 22:36:53 +00:00
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
This commit is contained in:
parent
8a6cd08850
commit
a95fc5eed0
@ -105,7 +105,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
|
|||||||
gss_create_empty_oid_set(&status, &oidset);
|
gss_create_empty_oid_set(&status, &oidset);
|
||||||
gss_add_oid_set_member(&status, ctx->oid, &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);
|
gss_release_oid_set(&status, &oidset);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user