14 lines
419 B
Diff
14 lines
419 B
Diff
|
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);
|
||
|
}
|