s3-talloc Change TALLOC_P() to talloc()
[nivanova/samba-autobuild/.git] / source3 / smbd / smb2_read.c
index f90f569e8ac0482a05ec65b11217424b983f9db9..6e686ef2738c174beaf19eb0681e14c47e3687f7 100644 (file)
@@ -308,7 +308,7 @@ static NTSTATUS schedule_smb2_sendfile_read(struct smbd_smb2_request *smb2req,
        /* Make a copy of state attached to the smb2req. Attach
           the destructor here as this will trigger the sendfile
           call when the request is destroyed. */
-       state_copy = TALLOC_P(smb2req, struct smbd_smb2_read_state);
+       state_copy = talloc(smb2req, struct smbd_smb2_read_state);
        if (!state_copy) {
                return NT_STATUS_NO_MEMORY;
        }