Commit e5162a4d authored by Andrew Bartlett's avatar Andrew Bartlett

librpc: Remove last callers of ndr_pull_get_switch_value()

By removing this we know we do not need to worry about this list
growing without bounds.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13876Signed-off-by: Andrew Bartlett's avatarAndrew Bartlett <[email protected]>
parent 8e8d74eb
......@@ -496,12 +496,11 @@ enum ndr_err_code ndr_push_drsuapi_DsBindInfo(struct ndr_push *ndr, int ndr_flag
enum ndr_err_code ndr_pull_drsuapi_DsBindInfo(struct ndr_pull *ndr, int ndr_flags, union drsuapi_DsBindInfo *r)
{
uint32_t level;
uint32_t _flags_save = ndr->flags;
ndr->flags = ndr->flags & ~LIBNDR_FLAG_NDR64;
level = ndr_pull_get_switch_value(ndr, r);
NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
if (ndr_flags & NDR_SCALARS) {
uint32_t level = ndr_pull_steal_switch_value(ndr, r);
NDR_CHECK(ndr_pull_union_align(ndr, 4));
switch (level) {
case 24: {
......@@ -551,25 +550,6 @@ enum ndr_err_code ndr_pull_drsuapi_DsBindInfo(struct ndr_pull *ndr, int ndr_flag
}
}
if (ndr_flags & NDR_BUFFERS) {
switch (level) {
case 24:
break;
case 28:
break;
case 48:
break;
case 52:
break;
default:
break;
}
}
ndr->flags = _flags_save;
return NDR_ERR_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment