Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at proto.c:505

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

free_GPtrArray_value

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.c)expand/collapse
Show more  
 492  free_GPtrArray_value(gpointer key, gpointer value, gpointer user_data _U_)
 493  {
 494          GPtrArray   *ptrs = value;
 495          gint hfid = (gint)(long)key;
 496          header_field_info *hfinfo;
 497   
 498   
 499          PROTO_REGISTRAR_GET_NTH(hfid, hfinfo);
 500          if(hfinfo->ref_count){
 501                  /* when a field is referenced by a filter this also
 502                     affects the refcount for the parent protocol so we need 
 503                     to adjust the refcount for the parent as well
 504                  */
 505                  if( (hfinfo->parent != -1) && (hfinfo->ref_count) ){
 506                          header_field_info *parent_hfinfo;
 507                          PROTO_REGISTRAR_GET_NTH(hfinfo->parent, parent_hfinfo);
 508                          parent_hfinfo->ref_count -= hfinfo->ref_count;
 509                  }
 510                  hfinfo->ref_count = 0;
 511          }
 512   
 513          g_ptr_array_free(ptrs, TRUE);
 514  }
Show more  




Change Warning 3498.30429 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: