diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-11-12 20:53:30 +1300 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-11-18 06:40:13 +0000 |
commit | f00c993f0c74de38d58766b1050bb13f78b42c9a (patch) | |
tree | 31d5737fece71c3ff7ad1c190a4cd29f2aa1b429 | |
parent | 8bed2c3f7a970dc8933a5215e2d9ba041c9a8759 (diff) | |
download | samba-f00c993f0c74de38d58766b1050bb13f78b42c9a.tar.gz |
CVE-2020-25717: nsswitch/nsstest.c: Lower 'non existent uid' to make room for new accounts
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14901
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit fdbee5e074ebd76d659613b8b7114d70f938c38a)
-rw-r--r-- | nsswitch/nsstest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/nsstest.c b/nsswitch/nsstest.c index e2ee9fbf3af..45270cdc459 100644 --- a/nsswitch/nsstest.c +++ b/nsswitch/nsstest.c @@ -466,7 +466,7 @@ static void nss_test_errors(void) printf("ERROR Non existent user gave error %d\n", last_error); } - pwd = getpwuid(0xFFF0); + pwd = getpwuid(0xFF00); if (pwd || last_error != NSS_STATUS_NOTFOUND) { total_errors++; printf("ERROR Non existent uid gave error %d\n", last_error); |