mirror of
https://github.com/samba-team/samba.git
synced 2025-04-29 14:50:26 +03:00
libsmb: Fix possible null pointer dereference.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
8bfbb81bcd
commit
48a453996a
@ -351,7 +351,7 @@ parse_ace(struct cli_state *ipc_cli,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (v = standard_values; v->perm; v++) {
|
for (v = standard_values; v != NULL; v++) {
|
||||||
if (strcmp(tok, v->perm) == 0) {
|
if (strcmp(tok, v->perm) == 0) {
|
||||||
amask = v->mask;
|
amask = v->mask;
|
||||||
goto done;
|
goto done;
|
||||||
@ -363,7 +363,7 @@ parse_ace(struct cli_state *ipc_cli,
|
|||||||
while(*p) {
|
while(*p) {
|
||||||
bool found = False;
|
bool found = False;
|
||||||
|
|
||||||
for (v = special_values; v->perm; v++) {
|
for (v = special_values; v != NULL; v++) {
|
||||||
if (v->perm[0] == *p) {
|
if (v->perm[0] == *p) {
|
||||||
amask |= v->mask;
|
amask |= v->mask;
|
||||||
found = True;
|
found = True;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user