Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-ldap.c:1240

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

dissect_ldap_AuthenticationChoice

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ldap.c)expand/collapse
Show more  
 1224  dissect_ldap_AuthenticationChoice(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
 1225  #line 495 "ldap.cnf"
 1226    gint branch = -1;
 1227    gint auth = -1;
 1228    const gchar *valstr;
 1229   
 1230      offset = dissect_ber_choice(actx, tree, tvb, offset,
 1231                                   AuthenticationChoice_choice, hf_index, ett_ldap_AuthenticationChoice,
 1232                                   &branch);
 1233   
 1234   
 1235    ldap_do_protocolop(actx->pinfo);
 1236   
 1237    if((branch > -1) && (branch < (gint)(sizeof AuthenticationChoice_choice/sizeof AuthenticationChoice_choice[0])))
 1238      auth = AuthenticationChoice_choice[branch].value;
 1239   
 1240    valstr = val_to_str(auth, ldap_AuthenticationChoice_vals, "Unknown auth(%u)");
 1241   
 1242    /* If auth is NTLM (10 or 11) don't add to column as the NTLM dissection will do this */
 1243    if (check_col(actx->pinfo->cinfo, COL_INFO) && (auth !=  10) && (auth != 11))
 1244      col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%s ", valstr);
 1245   
 1246    if(ldm_tree)
 1247      proto_item_append_text(ldm_tree, " %s", valstr);
 1248   
 1249   
 1250   
 1251   
 1252    return offset;
 1253  }
Show more  




Change Warning 12552.35758 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: