Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-q932-ros.c:297

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_q932_ros_Invoke

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-q932-ros.c)expand/collapse
Show more  
 271  dissect_q932_ros_Invoke(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 272  #line 8 "ros-inv.cnf"
 273    dissector_handle_t arg_handle = NULL;
 274    const gchar *descr = "";
 275   
 276    arg_next_tvb = NULL;
 277   
 278    offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
 279                                     Invoke_sequence, hf_index, ett_q932_ros_Invoke);
 280   
 281  #line 13 "ros-inv.cnf"
 282    actx->rose_ctx->d.pdu = 1;
 283   
 284    if ((actx->rose_ctx->d.code == 0) && actx->rose_ctx->arg_local_dissector_table) {
 285      arg_handle = dissector_get_port_handle(actx->rose_ctx->arg_local_dissector_table, actx->rose_ctx->d.code_local);
 286    } else if ((actx->rose_ctx->d.code == 1) && actx->rose_ctx->arg_global_dissector_table) {
 287      arg_handle = dissector_get_string_handle(actx->rose_ctx->arg_global_dissector_table, actx->rose_ctx->d.code_global);
 288    } else {
 289      arg_handle = NULL;
 290    }
 291   
 292    if (!arg_handle ||  
 293        !proto_is_protocol_enabled(find_protocol_by_id(dissector_handle_get_protocol_index(arg_handle)))) {
 294      if (actx->rose_ctx->d.code == 0)
 295        descr = ep_strdup_printf("INV: %d", actx->rose_ctx->d.code_local);
 296      else if (actx->rose_ctx->d.code == 1)
 297        descr = ep_strdup_printf("INV: %s", actx->rose_ctx->d.code_global);
 298    } else {
 299      descr = ep_strdup_printf("INV:");
 300    }
 301   
 302    if (actx->rose_ctx->apdu_depth >= 0)
 303      proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), actx->rose_ctx->apdu_depth), "  %s", descr);
 304    if (actx->rose_ctx->fillin_info && check_col(actx->pinfo->cinfo, COL_INFO))
 305      col_append_str(actx->pinfo->cinfo, COL_INFO, descr);
 306    if (actx->rose_ctx->fillin_ptr)
 307      g_strlcat(actx->rose_ctx->fillin_ptr, descr, actx->rose_ctx->fillin_buf_size);
 308   
 309    if (!arg_next_tvb) {  /* empty argument */
 310      arg_next_tvb = tvb_new_subset(tvb, (actx->encoding==ASN1_ENC_PER)?offset>>3:offset, 0, 0);
 311    }
 312    actx->pinfo->private_data = actx->rose_ctx;
 313    call_dissector((arg_handle)?arg_handle:data_handle, arg_next_tvb, actx->pinfo, tree);
 314   
 315    return offset;
 316  }
Show more  




Change Warning 5428.35650 : Ignored Return Value

Because they are very similar, this warning shares annotations with warning 5428.35651.

Priority:
State:
Finding:
Owner:
Note: