summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_lsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/srv_lsa.c')
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.c820
1 files changed, 410 insertions, 410 deletions
diff --git a/source3/librpc/gen_ndr/srv_lsa.c b/source3/librpc/gen_ndr/srv_lsa.c
index fef909e3ec..b76680969a 100644
--- a/source3/librpc/gen_ndr/srv_lsa.c
+++ b/source3/librpc/gen_ndr/srv_lsa.c
@@ -11,7 +11,7 @@ static bool api_lsa_Close(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_Close *r;
@@ -34,8 +34,8 @@ static bool api_lsa_Close(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -62,8 +62,8 @@ static bool api_lsa_Close(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -84,7 +84,7 @@ static bool api_lsa_Delete(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_Delete *r;
@@ -107,8 +107,8 @@ static bool api_lsa_Delete(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -133,8 +133,8 @@ static bool api_lsa_Delete(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -155,7 +155,7 @@ static bool api_lsa_EnumPrivs(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumPrivs *r;
@@ -178,8 +178,8 @@ static bool api_lsa_EnumPrivs(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -212,8 +212,8 @@ static bool api_lsa_EnumPrivs(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -234,7 +234,7 @@ static bool api_lsa_QuerySecurity(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QuerySecurity *r;
@@ -257,8 +257,8 @@ static bool api_lsa_QuerySecurity(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -290,8 +290,8 @@ static bool api_lsa_QuerySecurity(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -312,7 +312,7 @@ static bool api_lsa_SetSecObj(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSecObj *r;
@@ -335,8 +335,8 @@ static bool api_lsa_SetSecObj(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -361,8 +361,8 @@ static bool api_lsa_SetSecObj(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -383,7 +383,7 @@ static bool api_lsa_ChangePassword(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_ChangePassword *r;
@@ -406,8 +406,8 @@ static bool api_lsa_ChangePassword(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -432,8 +432,8 @@ static bool api_lsa_ChangePassword(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -454,7 +454,7 @@ static bool api_lsa_OpenPolicy(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenPolicy *r;
@@ -477,8 +477,8 @@ static bool api_lsa_OpenPolicy(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -510,8 +510,8 @@ static bool api_lsa_OpenPolicy(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -532,7 +532,7 @@ static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryInfoPolicy *r;
@@ -555,8 +555,8 @@ static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -588,8 +588,8 @@ static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -610,7 +610,7 @@ static bool api_lsa_SetInfoPolicy(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInfoPolicy *r;
@@ -633,8 +633,8 @@ static bool api_lsa_SetInfoPolicy(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -659,8 +659,8 @@ static bool api_lsa_SetInfoPolicy(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -681,7 +681,7 @@ static bool api_lsa_ClearAuditLog(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_ClearAuditLog *r;
@@ -704,8 +704,8 @@ static bool api_lsa_ClearAuditLog(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -730,8 +730,8 @@ static bool api_lsa_ClearAuditLog(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -752,7 +752,7 @@ static bool api_lsa_CreateAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateAccount *r;
@@ -775,8 +775,8 @@ static bool api_lsa_CreateAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -808,8 +808,8 @@ static bool api_lsa_CreateAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -830,7 +830,7 @@ static bool api_lsa_EnumAccounts(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccounts *r;
@@ -853,8 +853,8 @@ static bool api_lsa_EnumAccounts(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -887,8 +887,8 @@ static bool api_lsa_EnumAccounts(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -909,7 +909,7 @@ static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomain *r;
@@ -932,8 +932,8 @@ static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -965,8 +965,8 @@ static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -987,7 +987,7 @@ static bool api_lsa_EnumTrustDom(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumTrustDom *r;
@@ -1010,8 +1010,8 @@ static bool api_lsa_EnumTrustDom(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1044,8 +1044,8 @@ static bool api_lsa_EnumTrustDom(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1066,7 +1066,7 @@ static bool api_lsa_LookupNames(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames *r;
@@ -1089,8 +1089,8 @@ static bool api_lsa_LookupNames(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1124,8 +1124,8 @@ static bool api_lsa_LookupNames(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1146,7 +1146,7 @@ static bool api_lsa_LookupSids(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids *r;
@@ -1169,8 +1169,8 @@ static bool api_lsa_LookupSids(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1204,8 +1204,8 @@ static bool api_lsa_LookupSids(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1226,7 +1226,7 @@ static bool api_lsa_CreateSecret(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateSecret *r;
@@ -1249,8 +1249,8 @@ static bool api_lsa_CreateSecret(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1282,8 +1282,8 @@ static bool api_lsa_CreateSecret(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1304,7 +1304,7 @@ static bool api_lsa_OpenAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenAccount *r;
@@ -1327,8 +1327,8 @@ static bool api_lsa_OpenAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1360,8 +1360,8 @@ static bool api_lsa_OpenAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1382,7 +1382,7 @@ static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumPrivsAccount *r;
@@ -1405,8 +1405,8 @@ static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1438,8 +1438,8 @@ static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1460,7 +1460,7 @@ static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_AddPrivilegesToAccount *r;
@@ -1483,8 +1483,8 @@ static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1509,8 +1509,8 @@ static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1531,7 +1531,7 @@ static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RemovePrivilegesFromAccount *r;
@@ -1554,8 +1554,8 @@ static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1580,8 +1580,8 @@ static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1602,7 +1602,7 @@ static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetQuotasForAccount *r;
@@ -1625,8 +1625,8 @@ static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1651,8 +1651,8 @@ static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1673,7 +1673,7 @@ static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetQuotasForAccount *r;
@@ -1696,8 +1696,8 @@ static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1722,8 +1722,8 @@ static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1744,7 +1744,7 @@ static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetSystemAccessAccount *r;
@@ -1767,8 +1767,8 @@ static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1793,8 +1793,8 @@ static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1815,7 +1815,7 @@ static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSystemAccessAccount *r;
@@ -1838,8 +1838,8 @@ static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1864,8 +1864,8 @@ static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1886,7 +1886,7 @@ static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenTrustedDomain *r;
@@ -1909,8 +1909,8 @@ static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1942,8 +1942,8 @@ static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -1964,7 +1964,7 @@ static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfo *r;
@@ -1987,8 +1987,8 @@ static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2020,8 +2020,8 @@ static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2042,7 +2042,7 @@ static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInformationTrustedDomain *r;
@@ -2065,8 +2065,8 @@ static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2091,8 +2091,8 @@ static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2113,7 +2113,7 @@ static bool api_lsa_OpenSecret(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenSecret *r;
@@ -2136,8 +2136,8 @@ static bool api_lsa_OpenSecret(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2169,8 +2169,8 @@ static bool api_lsa_OpenSecret(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2191,7 +2191,7 @@ static bool api_lsa_SetSecret(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSecret *r;
@@ -2214,8 +2214,8 @@ static bool api_lsa_SetSecret(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2240,8 +2240,8 @@ static bool api_lsa_SetSecret(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2262,7 +2262,7 @@ static bool api_lsa_QuerySecret(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QuerySecret *r;
@@ -2285,8 +2285,8 @@ static bool api_lsa_QuerySecret(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2316,8 +2316,8 @@ static bool api_lsa_QuerySecret(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2338,7 +2338,7 @@ static bool api_lsa_LookupPrivValue(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivValue *r;
@@ -2361,8 +2361,8 @@ static bool api_lsa_LookupPrivValue(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2394,8 +2394,8 @@ static bool api_lsa_LookupPrivValue(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2416,7 +2416,7 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivName *r;
@@ -2439,8 +2439,8 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2472,8 +2472,8 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2494,7 +2494,7 @@ static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivDisplayName *r;
@@ -2517,8 +2517,8 @@ static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2551,8 +2551,8 @@ static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2573,7 +2573,7 @@ static bool api_lsa_DeleteObject(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_DeleteObject *r;
@@ -2596,8 +2596,8 @@ static bool api_lsa_DeleteObject(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2622,8 +2622,8 @@ static bool api_lsa_DeleteObject(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2644,7 +2644,7 @@ static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccountsWithUserRight *r;
@@ -2667,8 +2667,8 @@ static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2700,8 +2700,8 @@ static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2722,7 +2722,7 @@ static bool api_lsa_EnumAccountRights(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccountRights *r;
@@ -2745,8 +2745,8 @@ static bool api_lsa_EnumAccountRights(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2778,8 +2778,8 @@ static bool api_lsa_EnumAccountRights(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2800,7 +2800,7 @@ static bool api_lsa_AddAccountRights(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_AddAccountRights *r;
@@ -2823,8 +2823,8 @@ static bool api_lsa_AddAccountRights(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2849,8 +2849,8 @@ static bool api_lsa_AddAccountRights(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2871,7 +2871,7 @@ static bool api_lsa_RemoveAccountRights(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RemoveAccountRights *r;
@@ -2894,8 +2894,8 @@ static bool api_lsa_RemoveAccountRights(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2920,8 +2920,8 @@ static bool api_lsa_RemoveAccountRights(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2942,7 +2942,7 @@ static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfoBySid *r;
@@ -2965,8 +2965,8 @@ static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -2998,8 +2998,8 @@ static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3020,7 +3020,7 @@ static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetTrustedDomainInfo *r;
@@ -3043,8 +3043,8 @@ static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3069,8 +3069,8 @@ static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3091,7 +3091,7 @@ static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_DeleteTrustedDomain *r;
@@ -3114,8 +3114,8 @@ static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3140,8 +3140,8 @@ static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3162,7 +3162,7 @@ static bool api_lsa_StorePrivateData(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_StorePrivateData *r;
@@ -3185,8 +3185,8 @@ static bool api_lsa_StorePrivateData(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3211,8 +3211,8 @@ static bool api_lsa_StorePrivateData(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3233,7 +3233,7 @@ static bool api_lsa_RetrievePrivateData(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RetrievePrivateData *r;
@@ -3256,8 +3256,8 @@ static bool api_lsa_RetrievePrivateData(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3282,8 +3282,8 @@ static bool api_lsa_RetrievePrivateData(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3304,7 +3304,7 @@ static bool api_lsa_OpenPolicy2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenPolicy2 *r;
@@ -3327,8 +3327,8 @@ static bool api_lsa_OpenPolicy2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3360,8 +3360,8 @@ static bool api_lsa_OpenPolicy2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3382,7 +3382,7 @@ static bool api_lsa_GetUserName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetUserName *r;
@@ -3405,8 +3405,8 @@ static bool api_lsa_GetUserName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3434,8 +3434,8 @@ static bool api_lsa_GetUserName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3456,7 +3456,7 @@ static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryInfoPolicy2 *r;
@@ -3479,8 +3479,8 @@ static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3512,8 +3512,8 @@ static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3534,7 +3534,7 @@ static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInfoPolicy2 *r;
@@ -3557,8 +3557,8 @@ static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3583,8 +3583,8 @@ static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3605,7 +3605,7 @@ static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfoByName *r;
@@ -3628,8 +3628,8 @@ static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3661,8 +3661,8 @@ static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3683,7 +3683,7 @@ static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetTrustedDomainInfoByName *r;
@@ -3706,8 +3706,8 @@ static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3732,8 +3732,8 @@ static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3754,7 +3754,7 @@ static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumTrustedDomainsEx *r;
@@ -3777,8 +3777,8 @@ static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3811,8 +3811,8 @@ static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3833,7 +3833,7 @@ static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomainEx *r;
@@ -3856,8 +3856,8 @@ static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3882,8 +3882,8 @@ static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3904,7 +3904,7 @@ static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CloseTrustedDomainEx *r;
@@ -3927,8 +3927,8 @@ static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3955,8 +3955,8 @@ static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -3977,7 +3977,7 @@ static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryDomainInformationPolicy *r;
@@ -4000,8 +4000,8 @@ static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4033,8 +4033,8 @@ static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4055,7 +4055,7 @@ static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetDomainInformationPolicy *r;
@@ -4078,8 +4078,8 @@ static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4104,8 +4104,8 @@ static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4126,7 +4126,7 @@ static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenTrustedDomainByName *r;
@@ -4149,8 +4149,8 @@ static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4182,8 +4182,8 @@ static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4204,7 +4204,7 @@ static bool api_lsa_TestCall(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_TestCall *r;
@@ -4227,8 +4227,8 @@ static bool api_lsa_TestCall(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4253,8 +4253,8 @@ static bool api_lsa_TestCall(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4275,7 +4275,7 @@ static bool api_lsa_LookupSids2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids2 *r;
@@ -4298,8 +4298,8 @@ static bool api_lsa_LookupSids2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4333,8 +4333,8 @@ static bool api_lsa_LookupSids2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4355,7 +4355,7 @@ static bool api_lsa_LookupNames2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames2 *r;
@@ -4378,8 +4378,8 @@ static bool api_lsa_LookupNames2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4413,8 +4413,8 @@ static bool api_lsa_LookupNames2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4435,7 +4435,7 @@ static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomainEx2 *r;
@@ -4458,8 +4458,8 @@ static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4484,8 +4484,8 @@ static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4506,7 +4506,7 @@ static bool api_lsa_CREDRWRITE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRWRITE *r;
@@ -4529,8 +4529,8 @@ static bool api_lsa_CREDRWRITE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4555,8 +4555,8 @@ static bool api_lsa_CREDRWRITE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4577,7 +4577,7 @@ static bool api_lsa_CREDRREAD(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRREAD *r;
@@ -4600,8 +4600,8 @@ static bool api_lsa_CREDRREAD(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4626,8 +4626,8 @@ static bool api_lsa_CREDRREAD(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4648,7 +4648,7 @@ static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRENUMERATE *r;
@@ -4671,8 +4671,8 @@ static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4697,8 +4697,8 @@ static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4719,7 +4719,7 @@ static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRWRITEDOMAINCREDENTIALS *r;
@@ -4742,8 +4742,8 @@ static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4768,8 +4768,8 @@ static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4790,7 +4790,7 @@ static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRREADDOMAINCREDENTIALS *r;
@@ -4813,8 +4813,8 @@ static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4839,8 +4839,8 @@ static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4861,7 +4861,7 @@ static bool api_lsa_CREDRDELETE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRDELETE *r;
@@ -4884,8 +4884,8 @@ static bool api_lsa_CREDRDELETE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4910,8 +4910,8 @@ static bool api_lsa_CREDRDELETE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4932,7 +4932,7 @@ static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRGETTARGETINFO *r;
@@ -4955,8 +4955,8 @@ static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -4981,8 +4981,8 @@ static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5003,7 +5003,7 @@ static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRPROFILELOADED *r;
@@ -5026,8 +5026,8 @@ static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5052,8 +5052,8 @@ static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5074,7 +5074,7 @@ static bool api_lsa_LookupNames3(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames3 *r;
@@ -5097,8 +5097,8 @@ static bool api_lsa_LookupNames3(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5132,8 +5132,8 @@ static bool api_lsa_LookupNames3(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5154,7 +5154,7 @@ static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRGETSESSIONTYPES *r;
@@ -5177,8 +5177,8 @@ static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5203,8 +5203,8 @@ static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5225,7 +5225,7 @@ static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARREGISTERAUDITEVENT *r;
@@ -5248,8 +5248,8 @@ static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5274,8 +5274,8 @@ static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5296,7 +5296,7 @@ static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARGENAUDITEVENT *r;
@@ -5319,8 +5319,8 @@ static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5345,8 +5345,8 @@ static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5367,7 +5367,7 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARUNREGISTERAUDITEVENT *r;
@@ -5390,8 +5390,8 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5416,8 +5416,8 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5438,7 +5438,7 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r;
@@ -5461,8 +5461,8 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5487,8 +5487,8 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5509,7 +5509,7 @@ static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARSETFORESTTRUSTINFORMATION *r;
@@ -5532,8 +5532,8 @@ static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5558,8 +5558,8 @@ static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5580,7 +5580,7 @@ static bool api_lsa_CREDRRENAME(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRRENAME *r;
@@ -5603,8 +5603,8 @@ static bool api_lsa_CREDRRENAME(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5629,8 +5629,8 @@ static bool api_lsa_CREDRRENAME(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5651,7 +5651,7 @@ static bool api_lsa_LookupSids3(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids3 *r;
@@ -5674,8 +5674,8 @@ static bool api_lsa_LookupSids3(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5709,8 +5709,8 @@ static bool api_lsa_LookupSids3(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5731,7 +5731,7 @@ static bool api_lsa_LookupNames4(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames4 *r;
@@ -5754,8 +5754,8 @@ static bool api_lsa_LookupNames4(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5789,8 +5789,8 @@ static bool api_lsa_LookupNames4(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5811,7 +5811,7 @@ static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSAROPENPOLICYSCE *r;
@@ -5834,8 +5834,8 @@ static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5860,8 +5860,8 @@ static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5882,7 +5882,7 @@ static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r;
@@ -5905,8 +5905,8 @@ static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5931,8 +5931,8 @@ static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -5953,7 +5953,7 @@ static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r;
@@ -5976,8 +5976,8 @@ static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -6002,8 +6002,8 @@ static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -6024,7 +6024,7 @@ static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTREPORTSECURITYEVENT *r;
@@ -6047,8 +6047,8 @@ static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -6073,8 +6073,8 @@ static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}