1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Joseph Sutton 2021-11-12 20:53:30 +13:00 committed by Ralph Boehme
parent 5ea347d367
commit fdbee5e074

View File

@ -466,7 +466,7 @@ static void nss_test_errors(void)
printf("ERROR Non existent user gave error %d\n", last_error); printf("ERROR Non existent user gave error %d\n", last_error);
} }
pwd = getpwuid(0xFFF0); pwd = getpwuid(0xFF00);
if (pwd || last_error != NSS_STATUS_NOTFOUND) { if (pwd || last_error != NSS_STATUS_NOTFOUND) {
total_errors++; total_errors++;
printf("ERROR Non existent uid gave error %d\n", last_error); printf("ERROR Non existent uid gave error %d\n", last_error);