Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-x509if.c:406

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

dissect_x509if_T_values_item

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-x509if.c)expand/collapse
Show more  
 390  dissect_x509if_T_values_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 391  #line 225 "x509if.cnf"
 392    int old_offset = offset;
 393    tvbuff_t      *out_tvb;
 394    char          *value = NULL;
 395    const char    *fmt;  
 396    const char    *name = NULL;
 397    const char    *orig_oid = object_identifier_id;
 398   
 399    offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
 400   
 401    /* in dissecting the value we may have overridden the OID of the value - which is
 402       a problem if there are multiple values */
 403    object_identifier_id = orig_oid;
 404   
 405    /* try and dissect as a string */
 406    dissect_ber_octet_string(FALSE, actx, NULL, tvb, old_offset, hf_x509if_any_string, &out_tvb);
 407     
 408    /* should also try and dissect as an OID and integer */
 409    /* of course, if I can look up the syntax .... */
 410   
 411    if(out_tvb) {
 412      /* it was a string - format it */
 413      value = tvb_format_text(out_tvb, 0, tvb_length(out_tvb));
 414   
 415      if(doing_dn) {
 416        g_strlcat(last_rdn, value, MAX_RDN_STR_LEN);
 417   
 418        /* append it to the tree*/
 419        proto_item_append_text(tree, "%s)", value);
 420      }
 421   
 422      if((fmt = val_to_str(ava_hf_index, fmt_vals, "")) && *fmt) {
 423        /* we have a format */
 424   
 425      if(!(name = oid_resolved_from_string(object_identifier_id)))
 426        name = object_identifier_id;
 427      g_snprintf(last_ava, MAX_AVA_STR_LEN, "%s %s %s", name, fmt, value);
 428   
 429      proto_item_append_text(tree, " %s", last_ava);
 430   
 431      }
 432    }
 433   
 434   
 435   
 436    return offset;
 437  }
Show more  




Change Warning 5227.35597 : Ignored Return Value

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

Priority:
State:
Finding:
Owner:
Note: