1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

allow SID with 0 in subauthority to be converted properly

from string representation.
This commit is contained in:
Herb Lewis 2008-07-17 09:23:30 -07:00 committed by Jeremy Allison
parent 815383a417
commit 23f338d1da

View File

@ -139,7 +139,8 @@ wbcErr wbcStringToSid(const char *str,
p = q +1;
sid->num_auths = 0;
while (sid->num_auths < WBC_MAXSUBAUTHS) {
if ((x=(uint32_t)strtoul(p, &q, 10)) == 0)
x=(uint32_t)strtoul(p, &q, 10);
if (p == q)
break;
if (q == NULL) {
wbc_status = WBC_ERR_INVALID_SID;