1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-14 12:59:07 +03:00

libsmb: Fix possible null pointer dereference.

Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andreas Schneider
2013-02-18 17:11:15 +01:00
committed by Alexander Bokovoy
parent 8bfbb81bcd
commit 48a453996a

View File

@ -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;