diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 3537932c0d0..74f2f2ec4e4 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -2943,10 +2943,6 @@ NTSTATUS cli_smb2_get_user_quota(struct cli_state *cli, sid_len = ndr_size_dom_sid(&pqt->sid, 0); query.return_single = 1; - if (sid_len < 0) { - status = NT_STATUS_INVALID_PARAMETER; - goto fail; - } info.next_entry_offset = 0; info.sid_length = sid_len;