Skip to content

Commit f1b9e0f

Browse files
committed
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
1 parent 4ef2449 commit f1b9e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gss-serv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: gss-serv.c,v 1.36 2026/02/08 15:28:01 dtucker Exp $ */
1+
/* $OpenBSD: gss-serv.c,v 1.37 2026/02/11 16:57:38 dtucker Exp $ */
22

33
/*
44
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -107,7 +107,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
107107
gss_create_empty_oid_set(&status, &oidset);
108108
gss_add_oid_set_member(&status, ctx->oid, &oidset);
109109

110-
if (gethostname(lname, HOST_NAME_MAX)) {
110+
if (gethostname(lname, sizeof(lname))) {
111111
gss_release_oid_set(&status, &oidset);
112112
return (-1);
113113
}

0 commit comments

Comments
 (0)