mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
smbd: Simplify smbXsrv_open_set_replay_cache() with a struct assignment
Use a direct struct assignment instead of a function call Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
43f041de65
commit
bac265689a
@ -932,7 +932,7 @@ static NTSTATUS smbXsrv_open_set_replay_cache(struct smbXsrv_open *op)
|
||||
.local_id = op->local_id,
|
||||
};
|
||||
uint8_t data[SMBXSRV_OPEN_REPLAY_CACHE_FIXED_SIZE] = { 0 };
|
||||
DATA_BLOB blob = data_blob_const(data, ARRAY_SIZE(data));
|
||||
DATA_BLOB blob = { .data = data, .length = sizeof(data), };
|
||||
enum ndr_err_code ndr_err;
|
||||
NTSTATUS status;
|
||||
TDB_DATA key;
|
||||
|
Loading…
Reference in New Issue
Block a user