[driver] fixing arguments checking for acls
a null buffer for get/setacl is valid if buffer length is 0.
This commit is contained in:
parent
2253b28ed3
commit
b9775a69e9
1 changed files with 4 additions and 2 deletions
|
|
@ -4787,7 +4787,8 @@ NTSTATUS check_nfs41_getacl_args(
|
|||
status = STATUS_NOT_SUPPORTED;
|
||||
goto out;
|
||||
}
|
||||
if (RxContext->CurrentIrp->UserBuffer == NULL)
|
||||
if (RxContext->CurrentIrp->UserBuffer == NULL &&
|
||||
RxContext->CurrentIrpSp->Parameters.QuerySecurity.Length)
|
||||
status = STATUS_INVALID_USER_BUFFER;
|
||||
out:
|
||||
return status;
|
||||
|
|
@ -4931,7 +4932,8 @@ NTSTATUS check_nfs41_setacl_args(
|
|||
status = STATUS_NOT_SUPPORTED;
|
||||
goto out;
|
||||
}
|
||||
if (RxContext->CurrentIrp->UserBuffer == NULL)
|
||||
if (RxContext->CurrentIrp->UserBuffer == NULL &&
|
||||
RxContext->CurrentIrpSp->Parameters.QuerySecurity.Length)
|
||||
status = STATUS_INVALID_USER_BUFFER;
|
||||
out:
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue