diff options
author | Michael Mann <mmann78@netscape.net> | 2013-10-01 14:45:03 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-10-01 14:45:03 +0000 |
commit | 0334c5b425d185635f2654e21c5fb06aff197311 (patch) | |
tree | 7b7885391055681dfc03ffc44bdb53a8171a89dd /epan/dissectors/packet-dcerpc-initshutdown.c | |
parent | c6371f0f6d31a42d2cd8a918a96775cf430667e9 (diff) | |
download | wireshark-0334c5b425d185635f2654e21c5fb06aff197311.tar.gz |
Remove check_col from generated DCE/RPC dissectors. Bug 8804 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8804).
I still couldn't figure out how to generate the source, so I made the modifications to the generated dissectors "manually" (search/replace tool in VS) that would match the "PIDL source" included here.
I will be sending the "PIDL source" (non dissector files) to the samba team.
svn path=/trunk/; revision=52313
Diffstat (limited to 'epan/dissectors/packet-dcerpc-initshutdown.c')
-rw-r--r-- | epan/dissectors/packet-dcerpc-initshutdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dcerpc-initshutdown.c b/epan/dissectors/packet-dcerpc-initshutdown.c index dec43daf42..4551fb2a26 100644 --- a/epan/dissectors/packet-dcerpc-initshutdown.c +++ b/epan/dissectors/packet-dcerpc-initshutdown.c @@ -276,7 +276,7 @@ initshutdown_dissect_Init_response(tvbuff_t *tvb _U_, int offset _U_, packet_inf pinfo->dcerpc_procedure_name="Init"; offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status); - if (status != 0 && check_col(pinfo->cinfo, COL_INFO)) + if (status != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, WERR_errors, "Unknown DOS error 0x%08x")); return offset; @@ -327,7 +327,7 @@ initshutdown_dissect_Abort_response(tvbuff_t *tvb _U_, int offset _U_, packet_in pinfo->dcerpc_procedure_name="Abort"; offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status); - if (status != 0 && check_col(pinfo->cinfo, COL_INFO)) + if (status != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, WERR_errors, "Unknown DOS error 0x%08x")); return offset; @@ -423,7 +423,7 @@ initshutdown_dissect_InitEx_response(tvbuff_t *tvb _U_, int offset _U_, packet_i pinfo->dcerpc_procedure_name="InitEx"; offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status); - if (status != 0 && check_col(pinfo->cinfo, COL_INFO)) + if (status != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, WERR_errors, "Unknown DOS error 0x%08x")); return offset; |