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:
parent
815383a417
commit
23f338d1da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user