mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-01-12 00:04:08 +08:00
upstream: increment correct variable when counting group
memberships. Reported by Kevin Day via bz3903 OpenBSD-Commit-ID: 772b9aafd5165a7c407f08cb95f8b94cc5a4c1c0
This commit is contained in:
committed by
Damien Miller
parent
d05b704086
commit
70ad2e9a2b
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: sftp-server.c,v 1.149 2025/09/02 09:26:21 djm Exp $ */
|
||||
/* $OpenBSD: sftp-server.c,v 1.150 2025/12/08 00:41:46 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
|
||||
*
|
||||
@@ -1754,7 +1754,7 @@ process_extended_get_users_groups_by_id(u_int32_t id)
|
||||
debug3_f("gid %u => \"%s\"", n, name);
|
||||
if ((r = sshbuf_put_cstring(groupnames, name)) != 0)
|
||||
fatal_fr(r, "assemble gid reply");
|
||||
nusers++;
|
||||
ngroups++;
|
||||
}
|
||||
verbose("users-groups-by-id: %u users, %u groups", nusers, ngroups);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user