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;
|
||||
}
|
||||
|
||||
for (v = standard_values; v->perm; v++) {
|
||||
for (v = standard_values; v != NULL; v++) {
|
||||
if (strcmp(tok, v->perm) == 0) {
|
||||
amask = v->mask;
|
||||
goto done;
|
||||
@ -363,7 +363,7 @@ parse_ace(struct cli_state *ipc_cli,
|
||||
while(*p) {
|
||||
bool found = False;
|
||||
|
||||
for (v = special_values; v->perm; v++) {
|
||||
for (v = special_values; v != NULL; v++) {
|
||||
if (v->perm[0] == *p) {
|
||||
amask |= v->mask;
|
||||
found = True;
|
||||
|
Loading…
x
Reference in New Issue
Block a user