mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
Guenther
This commit is contained in:
parent
7f5aef542a
commit
fd3ba988dc
@ -160,7 +160,7 @@ static NTSTATUS messaging_tdb_fetch(TDB_CONTEXT *msg_tdb,
|
||||
blob = data_blob_const(data.dptr, data.dsize);
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(
|
||||
&blob, result, result,
|
||||
&blob, result, NULL, result,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_messaging_array);
|
||||
|
||||
SAFE_FREE(data.dptr);
|
||||
@ -203,7 +203,7 @@ static NTSTATUS messaging_tdb_store(TDB_CONTEXT *msg_tdb,
|
||||
}
|
||||
|
||||
ndr_err = ndr_push_struct_blob(
|
||||
&blob, mem_ctx, array,
|
||||
&blob, mem_ctx, NULL, array,
|
||||
(ndr_push_flags_fn_t)ndr_push_messaging_array);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
|
@ -249,7 +249,7 @@ NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx,
|
||||
enum ndr_err_code ndr_err;
|
||||
|
||||
ndr_err = ndr_push_struct_blob(
|
||||
&blob, mem_ctx, secdesc,
|
||||
&blob, mem_ctx, NULL, secdesc,
|
||||
(ndr_push_flags_fn_t)ndr_push_security_descriptor);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
@ -285,7 +285,7 @@ NTSTATUS unmarshall_sec_desc(TALLOC_CTX *mem_ctx, uint8 *data, size_t len,
|
||||
blob = data_blob_const(data, len);
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(
|
||||
&blob, result, result,
|
||||
&blob, result, NULL, result,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_security_descriptor);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
|
@ -86,7 +86,7 @@ static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
|
||||
old_utdv = talloc(mem_ctx, struct replUpToDateVectorBlob);
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(&entry->password, old_utdv,
|
||||
old_utdv,
|
||||
NULL, old_utdv,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_replUpToDateVectorBlob);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
NTSTATUS status = ndr_map_error2ntstatus(ndr_err);
|
||||
@ -124,7 +124,7 @@ static NTSTATUS keytab_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
|
||||
NDR_PRINT_DEBUG(replUpToDateVectorBlob, new_utdv);
|
||||
}
|
||||
|
||||
ndr_err = ndr_push_struct_blob(&blob, mem_ctx, new_utdv,
|
||||
ndr_err = ndr_push_struct_blob(&blob, mem_ctx, NULL, new_utdv,
|
||||
(ndr_push_flags_fn_t)ndr_push_replUpToDateVectorBlob);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
status = ndr_map_error2ntstatus(ndr_err);
|
||||
@ -236,7 +236,7 @@ static NTSTATUS parse_supplemental_credentials(TALLOC_CTX *mem_ctx,
|
||||
status = NT_STATUS_NO_MEMORY;
|
||||
goto done;
|
||||
}
|
||||
ndr_err = ndr_pull_struct_blob(&scpk_blob, mem_ctx, pkb,
|
||||
ndr_err = ndr_pull_struct_blob(&scpk_blob, mem_ctx, NULL, pkb,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_package_PrimaryKerberosBlob);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
status = ndr_map_error2ntstatus(ndr_err);
|
||||
|
@ -65,7 +65,7 @@ static NTSTATUS fix_user(TALLOC_CTX *mem_ctx,
|
||||
user->user_private_info.SensitiveData = data.data;
|
||||
user->user_private_info.DataLength = data.length;
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(&data, mem_ctx, &keys,
|
||||
ndr_err = ndr_pull_struct_blob(&data, mem_ctx, NULL, &keys,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_netr_USER_KEYS);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
dump_data(10, data.data, data.length);
|
||||
@ -397,7 +397,7 @@ NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
|
||||
|
||||
blob = data_blob_const(r->array, r->length);
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, str,
|
||||
ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, NULL, str,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_netr_AcctLockStr);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
|
@ -181,7 +181,7 @@ bool send_getdc_request(TALLOC_CTX *mem_ctx,
|
||||
NDR_PRINT_DEBUG(nbt_ntlogon_packet, &packet);
|
||||
}
|
||||
|
||||
ndr_err = ndr_push_struct_blob(&blob, mem_ctx, &packet,
|
||||
ndr_err = ndr_push_struct_blob(&blob, mem_ctx, NULL, &packet,
|
||||
(ndr_push_flags_fn_t)ndr_push_nbt_ntlogon_packet);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
return false;
|
||||
|
@ -38,7 +38,7 @@ static NTSTATUS parse_acl_blob(const DATA_BLOB *pblob,
|
||||
size_t sd_size;
|
||||
struct timespec ts;
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(pblob, ctx, &xacl,
|
||||
ndr_err = ndr_pull_struct_blob(pblob, ctx, NULL, &xacl,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_xattr_NTACL);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
@ -245,7 +245,7 @@ static NTSTATUS create_acl_blob(SEC_DESC *psd, DATA_BLOB *pblob)
|
||||
unix_timespec_to_nt_time(&xacl.info.sd_ts->last_changed, curr);
|
||||
|
||||
ndr_err = ndr_push_struct_blob(
|
||||
pblob, ctx, &xacl,
|
||||
pblob, ctx, NULL, &xacl,
|
||||
(ndr_push_flags_fn_t)ndr_push_xattr_NTACL);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
|
@ -48,7 +48,7 @@ static NTSTATUS xattr_tdb_pull_attrs(TALLOC_CTX *mem_ctx,
|
||||
blob = data_blob_const(data->dptr, data->dsize);
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(
|
||||
&blob, result, result,
|
||||
&blob, result, NULL, result,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_tdb_xattrs);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
@ -74,7 +74,7 @@ static NTSTATUS xattr_tdb_push_attrs(TALLOC_CTX *mem_ctx,
|
||||
enum ndr_err_code ndr_err;
|
||||
|
||||
ndr_err = ndr_push_struct_blob(
|
||||
&blob, mem_ctx, attribs,
|
||||
&blob, mem_ctx, NULL, attribs,
|
||||
(ndr_push_flags_fn_t)ndr_push_tdb_xattrs);
|
||||
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
|
@ -1186,7 +1186,7 @@ static NTSTATUS rpc_registry_getsd_internal(struct net_context *c,
|
||||
blob.data = sd->data;
|
||||
blob.length = sd->size;
|
||||
|
||||
ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, &sec_desc,
|
||||
ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, NULL, &sec_desc,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_security_descriptor);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
status = ndr_map_error2ntstatus(ndr_err);
|
||||
|
Loading…
Reference in New Issue
Block a user