Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-ldap.c:2129

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

dissect_ldap_AttributeValue

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ldap.c)expand/collapse
Show more  
 2120  dissect_ldap_AttributeValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 2121  #line 462 "ldap.cnf"
 2122   
 2123    tvbuff_t      *next_tvb;
 2124    gchar         *string;
 2125    guint32       i, len;
 2126    int           old_offset = offset;
 2127   
 2128    /* extract the value of the octetstring */
 2129    offset = dissect_ber_octet_string(FALSE, actx, NULL, tvb, offset, hf_index, &next_tvb);
 2130   
 2131    /* if we have an attribute type that isn't binary see if there is a better dissector */
 2132    if(!attr_type || !dissector_try_string(ldap_name_dissector_table, attr_type, next_tvb, actx->pinfo, tree)) {
 2133          offset = old_offset;
 2134   
 2135          /* do the default thing */
 2136            offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
 2137                                         NULL);
 2138   
 2139   
 2140    }
 2141   
 2142    len = tvb_length_remaining(next_tvb, 0);
 2143   
 2144    for(i = 0; i < len; i++)
 2145      if(!g_ascii_isprint(tvb_get_guint8(next_tvb, i)))
 2146        break;
 2147   
 2148    if(i == len) {
 2149      string = tvb_get_ephemeral_string(next_tvb, 0, tvb_length_remaining(next_tvb, 0));
 2150   
 2151   
 2152      proto_item_set_text(actx->created_item, "%s", string);
 2153   
 2154    }
 2155   
 2156   
 2157   
 2158    return offset;
 2159  }
Show more  




Change Warning 5398.35609 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: