summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_eventlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/srv_eventlog.c')
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.c240
1 files changed, 120 insertions, 120 deletions
diff --git a/source3/librpc/gen_ndr/srv_eventlog.c b/source3/librpc/gen_ndr/srv_eventlog.c
index 13810d4d74..784bb51d6f 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.c
+++ b/source3/librpc/gen_ndr/srv_eventlog.c
@@ -11,7 +11,7 @@ static bool api_eventlog_ClearEventLogW(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 eventlog_ClearEventLogW *r;
@@ -34,8 +34,8 @@ static bool api_eventlog_ClearEventLogW(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;
}
@@ -60,8 +60,8 @@ static bool api_eventlog_ClearEventLogW(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;
}
@@ -82,7 +82,7 @@ static bool api_eventlog_BackupEventLogW(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 eventlog_BackupEventLogW *r;
@@ -105,8 +105,8 @@ static bool api_eventlog_BackupEventLogW(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;
}
@@ -131,8 +131,8 @@ static bool api_eventlog_BackupEventLogW(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;
}
@@ -153,7 +153,7 @@ static bool api_eventlog_CloseEventLog(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 eventlog_CloseEventLog *r;
@@ -176,8 +176,8 @@ static bool api_eventlog_CloseEventLog(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;
}
@@ -204,8 +204,8 @@ static bool api_eventlog_CloseEventLog(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;
}
@@ -226,7 +226,7 @@ static bool api_eventlog_DeregisterEventSource(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 eventlog_DeregisterEventSource *r;
@@ -249,8 +249,8 @@ static bool api_eventlog_DeregisterEventSource(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;
}
@@ -275,8 +275,8 @@ static bool api_eventlog_DeregisterEventSource(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;
}
@@ -297,7 +297,7 @@ static bool api_eventlog_GetNumRecords(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 eventlog_GetNumRecords *r;
@@ -320,8 +320,8 @@ static bool api_eventlog_GetNumRecords(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;
}
@@ -353,8 +353,8 @@ static bool api_eventlog_GetNumRecords(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;
}
@@ -375,7 +375,7 @@ static bool api_eventlog_GetOldestRecord(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 eventlog_GetOldestRecord *r;
@@ -398,8 +398,8 @@ static bool api_eventlog_GetOldestRecord(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;
}
@@ -424,8 +424,8 @@ static bool api_eventlog_GetOldestRecord(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;
}
@@ -446,7 +446,7 @@ static bool api_eventlog_ChangeNotify(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 eventlog_ChangeNotify *r;
@@ -469,8 +469,8 @@ static bool api_eventlog_ChangeNotify(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;
}
@@ -495,8 +495,8 @@ static bool api_eventlog_ChangeNotify(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;
}
@@ -517,7 +517,7 @@ static bool api_eventlog_OpenEventLogW(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 eventlog_OpenEventLogW *r;
@@ -540,8 +540,8 @@ static bool api_eventlog_OpenEventLogW(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;
}
@@ -573,8 +573,8 @@ static bool api_eventlog_OpenEventLogW(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;
}
@@ -595,7 +595,7 @@ static bool api_eventlog_RegisterEventSourceW(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 eventlog_RegisterEventSourceW *r;
@@ -618,8 +618,8 @@ static bool api_eventlog_RegisterEventSourceW(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;
}
@@ -644,8 +644,8 @@ static bool api_eventlog_RegisterEventSourceW(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;
}
@@ -666,7 +666,7 @@ static bool api_eventlog_OpenBackupEventLogW(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 eventlog_OpenBackupEventLogW *r;
@@ -689,8 +689,8 @@ static bool api_eventlog_OpenBackupEventLogW(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;
}
@@ -715,8 +715,8 @@ static bool api_eventlog_OpenBackupEventLogW(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;
}
@@ -737,7 +737,7 @@ static bool api_eventlog_ReadEventLogW(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 eventlog_ReadEventLogW *r;
@@ -760,8 +760,8 @@ static bool api_eventlog_ReadEventLogW(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;
}
@@ -805,8 +805,8 @@ static bool api_eventlog_ReadEventLogW(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;
}
@@ -827,7 +827,7 @@ static bool api_eventlog_ReportEventW(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 eventlog_ReportEventW *r;
@@ -850,8 +850,8 @@ static bool api_eventlog_ReportEventW(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;
}
@@ -876,8 +876,8 @@ static bool api_eventlog_ReportEventW(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;
}
@@ -898,7 +898,7 @@ static bool api_eventlog_ClearEventLogA(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 eventlog_ClearEventLogA *r;
@@ -921,8 +921,8 @@ static bool api_eventlog_ClearEventLogA(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;
}
@@ -947,8 +947,8 @@ static bool api_eventlog_ClearEventLogA(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;
}
@@ -969,7 +969,7 @@ static bool api_eventlog_BackupEventLogA(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 eventlog_BackupEventLogA *r;
@@ -992,8 +992,8 @@ static bool api_eventlog_BackupEventLogA(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;
}
@@ -1018,8 +1018,8 @@ static bool api_eventlog_BackupEventLogA(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;
}
@@ -1040,7 +1040,7 @@ static bool api_eventlog_OpenEventLogA(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 eventlog_OpenEventLogA *r;
@@ -1063,8 +1063,8 @@ static bool api_eventlog_OpenEventLogA(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;
}
@@ -1089,8 +1089,8 @@ static bool api_eventlog_OpenEventLogA(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;
}
@@ -1111,7 +1111,7 @@ static bool api_eventlog_RegisterEventSourceA(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 eventlog_RegisterEventSourceA *r;
@@ -1134,8 +1134,8 @@ static bool api_eventlog_RegisterEventSourceA(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;
}
@@ -1160,8 +1160,8 @@ static bool api_eventlog_RegisterEventSourceA(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;
}
@@ -1182,7 +1182,7 @@ static bool api_eventlog_OpenBackupEventLogA(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 eventlog_OpenBackupEventLogA *r;
@@ -1205,8 +1205,8 @@ static bool api_eventlog_OpenBackupEventLogA(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;
}
@@ -1231,8 +1231,8 @@ static bool api_eventlog_OpenBackupEventLogA(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;
}
@@ -1253,7 +1253,7 @@ static bool api_eventlog_ReadEventLogA(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 eventlog_ReadEventLogA *r;
@@ -1276,8 +1276,8 @@ static bool api_eventlog_ReadEventLogA(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;
}
@@ -1302,8 +1302,8 @@ static bool api_eventlog_ReadEventLogA(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;
}
@@ -1324,7 +1324,7 @@ static bool api_eventlog_ReportEventA(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 eventlog_ReportEventA *r;
@@ -1347,8 +1347,8 @@ static bool api_eventlog_ReportEventA(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;
}
@@ -1373,8 +1373,8 @@ static bool api_eventlog_ReportEventA(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;
}
@@ -1395,7 +1395,7 @@ static bool api_eventlog_RegisterClusterSvc(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 eventlog_RegisterClusterSvc *r;
@@ -1418,8 +1418,8 @@ static bool api_eventlog_RegisterClusterSvc(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;
}
@@ -1444,8 +1444,8 @@ static bool api_eventlog_RegisterClusterSvc(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;
}
@@ -1466,7 +1466,7 @@ static bool api_eventlog_DeregisterClusterSvc(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 eventlog_DeregisterClusterSvc *r;
@@ -1489,8 +1489,8 @@ static bool api_eventlog_DeregisterClusterSvc(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;
}
@@ -1515,8 +1515,8 @@ static bool api_eventlog_DeregisterClusterSvc(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;
}
@@ -1537,7 +1537,7 @@ static bool api_eventlog_WriteClusterEvents(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 eventlog_WriteClusterEvents *r;
@@ -1560,8 +1560,8 @@ static bool api_eventlog_WriteClusterEvents(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;
}
@@ -1586,8 +1586,8 @@ static bool api_eventlog_WriteClusterEvents(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;
}
@@ -1608,7 +1608,7 @@ static bool api_eventlog_GetLogIntormation(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 eventlog_GetLogIntormation *r;
@@ -1631,8 +1631,8 @@ static bool api_eventlog_GetLogIntormation(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;
}
@@ -1657,8 +1657,8 @@ static bool api_eventlog_GetLogIntormation(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;
}
@@ -1679,7 +1679,7 @@ static bool api_eventlog_FlushEventLog(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 eventlog_FlushEventLog *r;
@@ -1702,8 +1702,8 @@ static bool api_eventlog_FlushEventLog(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;
}
@@ -1728,8 +1728,8 @@ static bool api_eventlog_FlushEventLog(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;
}