mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
Fix an "invalid operation involving NULL pointer" found by the IBM checker
Jerry, please check! Volker
This commit is contained in:
parent
44a9e5b713
commit
eb6096a2d4
@ -141,9 +141,13 @@ wbcErr wbcStringToSid(const char *str,
|
||||
while (sid->num_auths < WBC_MAXSUBAUTHS) {
|
||||
if ((x=(uint32_t)strtoul(p, &q, 10)) == 0)
|
||||
break;
|
||||
if (q == NULL) {
|
||||
wbc_status = WBC_ERR_INVALID_SID;
|
||||
BAIL_ON_WBC_ERROR(wbc_status);
|
||||
}
|
||||
sid->sub_auths[sid->num_auths++] = x;
|
||||
|
||||
if (q && ((*q!='-') || (*q=='\0')))
|
||||
if ((*q!='-') || (*q=='\0'))
|
||||
break;
|
||||
p = q + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user