Text   |  XML   |  ReML   |   Visible Warnings:

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

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

dissect_q932_ros_ReturnResult

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-q932-ros.c)expand/collapse
Show more  
 360  dissect_q932_ros_ReturnResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 361  #line 7 "ros-res.cnf"
 362    dissector_handle_t res_handle = NULL;
 363    const gchar *descr = "";
 364   
 365    res_next_tvb = NULL;
 366   
 367    offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
 368                                     ReturnResult_sequence, hf_index, ett_q932_ros_ReturnResult);
 369   
 370  #line 12 "ros-res.cnf"
 371    actx->rose_ctx->d.pdu = 2;
 372   
 373    if ((actx->rose_ctx->d.code == 0) && actx->rose_ctx->res_local_dissector_table) {
 374      res_handle = dissector_get_port_handle(actx->rose_ctx->res_local_dissector_table, actx->rose_ctx->d.code_local);
 375    } else if ((actx->rose_ctx->d.code == 1) && actx->rose_ctx->res_global_dissector_table) {
 376      res_handle = dissector_get_string_handle(actx->rose_ctx->res_global_dissector_table, actx->rose_ctx->d.code_global);
 377    } else {
 378      res_handle = NULL;
 379    }
 380   
 381    if (!res_handle ||  
 382        !proto_is_protocol_enabled(find_protocol_by_id(dissector_handle_get_protocol_index(res_handle)))) {
 383      if (actx->rose_ctx->d.code == 0)
 384        descr = ep_strdup_printf("RES: %d", actx->rose_ctx->d.code_local);
 385      else if (actx->rose_ctx->d.code == 1)
 386        descr = ep_strdup_printf("RES: %s", actx->rose_ctx->d.code_global);
 387    } else {
 388      descr = ep_strdup_printf("RES:");
 389    }
 390   
 391    if (actx->rose_ctx->apdu_depth >= 0)
 392      proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), actx->rose_ctx->apdu_depth), "  %s", descr);
 393    if (actx->rose_ctx->fillin_info && check_col(actx->pinfo->cinfo, COL_INFO))
 394      col_append_str(actx->pinfo->cinfo, COL_INFO, descr);
 395    if (actx->rose_ctx->fillin_ptr)
 396      g_strlcat(actx->rose_ctx->fillin_ptr, descr, actx->rose_ctx->fillin_buf_size);
 397   
 398    if (!res_next_tvb) {  /* empty result */
 399      res_next_tvb = tvb_new_subset(tvb, (actx->encoding==ASN1_ENC_PER)?offset>>3:offset, 0, 0);
 400    }
 401    actx->pinfo->private_data = actx->rose_ctx;
 402    call_dissector((res_handle)?res_handle:data_handle, res_next_tvb, actx->pinfo, tree);  
 403   
 404    return offset;
 405  }
Show more  




Change Warning 5427.35648 : Ignored Return Value

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

Priority:
State:
Finding:
Owner:
Note: