summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-09-25 13:27:04 -0700
committerMatthieu Patou <mat@matws.net>2012-10-07 21:51:01 -0700
commit303ef62b29227a53199f870c18ea2278853e1ddc (patch)
treef6e3b4cc147931ed28a78de688b4fc22ea97aab2
parentf98abc7baaba7b2ea7f40b447535d5998eb819e4 (diff)
downloadsamba-303ef62b29227a53199f870c18ea2278853e1ddc.tar.gz
samba-303ef62b29227a53199f870c18ea2278853e1ddc.tar.bz2
samba-303ef62b29227a53199f870c18ea2278853e1ddc.zip
kcc: return invalid parameter if the taskId is not 0
-rw-r--r--source4/rpc_server/drsuapi/dcesrv_drsuapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
index 1f0ea9c8d6..e71a1b1989 100644
--- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
+++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
@@ -810,7 +810,9 @@ static WERROR dcesrv_drsuapi_DsExecuteKCC(struct dcesrv_call_state *dce_call, TA
if (!W_ERROR_IS_OK(status)) {
return status;
}
-
+ if (r->in.req->ctr1.taskID != 0) {
+ return WERR_INVALID_PARAM;
+ }
dcesrv_irpc_forward_rpc_call(dce_call, mem_ctx, r, NDR_DRSUAPI_DSEXECUTEKCC,
&ndr_table_drsuapi, "kccsrv", "DsExecuteKCC",
IRPC_CALL_TIMEOUT);