diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-08 09:02:16 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-08 09:02:16 +0000 |
commit | c52457715e88a41d6c43b2becc2d72616de01d7c (patch) | |
tree | 800151b06ccedf15941252c7a248dd7f37eb759d /asn1 | |
parent | c5dffb5742907d5f328fa1bc52bb106510b13009 (diff) |
Do not report undecoded message to expert info for ReturnResult without result filed
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34076 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/ros/ros-res.cnf | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/asn1/ros/ros-res.cnf b/asn1/ros/ros-res.cnf index bdf7edf1b5..4f85d0c419 100644 --- a/asn1/ros/ros-res.cnf +++ b/asn1/ros/ros-res.cnf @@ -7,6 +7,7 @@ dissector_handle_t res_handle = NULL; const gchar *descr = ""; + actx->rose_ctx->d.code = -1; res_next_tvb = NULL; #.FN_FTR ReturnResult actx->rose_ctx->d.pdu = 2; @@ -36,12 +37,14 @@ if (actx->rose_ctx->fillin_ptr) g_strlcat(actx->rose_ctx->fillin_ptr, descr, actx->rose_ctx->fillin_buf_size); - if (!res_next_tvb) { /* empty result */ - res_next_tvb = tvb_new_subset(tvb, (actx->encoding==ASN1_ENC_PER)?offset>>3:offset, 0, 0); - } - actx->pinfo->private_data = actx->rose_ctx; - call_dissector((res_handle)?res_handle:data_handle, res_next_tvb, actx->pinfo, tree); - if (!res_handle) { - expert_add_info_format(actx->pinfo, tree, PI_UNDECODED, PI_WARN, "Undecoded %s", descr); + if (actx->rose_ctx->d.code != -1) { + if (!res_next_tvb) { /* empty result */ + res_next_tvb = tvb_new_subset(tvb, (actx->encoding==ASN1_ENC_PER)?offset>>3:offset, 0, 0); + } + actx->pinfo->private_data = actx->rose_ctx; + call_dissector((res_handle)?res_handle:data_handle, res_next_tvb, actx->pinfo, tree); + if (!res_handle) { + expert_add_info_format(actx->pinfo, tree, PI_UNDECODED, PI_WARN, "Undecoded %s", descr); + } } #.END |