diff options
Diffstat (limited to 'source4/librpc/ndr/ndr_wkssvc.c')
-rw-r--r-- | source4/librpc/ndr/ndr_wkssvc.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source4/librpc/ndr/ndr_wkssvc.c b/source4/librpc/ndr/ndr_wkssvc.c index 40006a5982..d6b1558d4c 100644 --- a/source4/librpc/ndr/ndr_wkssvc.c +++ b/source4/librpc/ndr/ndr_wkssvc.c @@ -88,7 +88,8 @@ NTSTATUS ndr_push_wkssvc_TransportInfo(struct ndr_push *ndr, int ndr_flags, uint break; default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); + break; + } ndr_push_struct_end(ndr); buffers: @@ -101,7 +102,8 @@ buffers: break; default: - return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); + break; + } done: return NT_STATUS_OK; @@ -653,8 +655,9 @@ NTSTATUS ndr_pull_wkssvc_TransportInfo(struct ndr_pull *ndr, int ndr_flags, uint } break; } - default: - return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); + default: { + break; } + } ndr_pull_struct_end(ndr); buffers: @@ -667,7 +670,8 @@ buffers: break; default: - return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); + break; + } done: return NT_STATUS_OK; @@ -1187,7 +1191,8 @@ void ndr_print_wkssvc_TransportInfo(struct ndr_print *ndr, const char *name, uin break; default: - ndr_print_bad_level(ndr, name, level); + break; + } } |