mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:torture/rap/rap.c - quiet discard const warning
This commit is contained in:
parent
bd3e70c1be
commit
6af5e7cde1
@ -212,7 +212,7 @@ static NTSTATUS rap_pull_string(TALLOC_CTX *mem_ctx, struct ndr_pull *ndr,
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
|
||||
*dest = talloc_zero_array(mem_ctx, char, len+1);
|
||||
pull_string((char *)*dest, p, len+1, len, STR_ASCII);
|
||||
pull_string(discard_const_p(char, *dest), p, len+1, len, STR_ASCII);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user