[driver] fixing arguments checking for acls

a null buffer for get/setacl is valid if buffer length is 0.
This commit is contained in:
Olga Kornievskaia 2012-05-02 16:17:01 -04:00
parent 2253b28ed3
commit b9775a69e9

View file

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