Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at rtp_analysis.c:3526

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

process_node

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_analysis.c)expand/collapse
Show more  
 3498  static gboolean process_node(proto_node *ptree_node, header_field_info *hfinformation,
 3499                                                          const gchar* proto_field, guint32* p_result)
 3500  {
 3501          field_info            *finfo;
 3502          proto_node            *proto_sibling_node;
 3503          header_field_info     *hfssrc;
 3504          ipv4_addr             *ipv4;
 3505   
 3506          finfo = PITEM_FINFO(ptree_node);
 3507   
 3508          if (hfinformation==(finfo->hfinfo)) {
 3509                  hfssrc = proto_registrar_get_byname(proto_field);
 3510                  if (hfssrc == NULL)
 3511                          return FALSE;
 3512                  for(ptree_node=ptree_node->first_child; ptree_node!=NULL;
 3513                                          ptree_node=ptree_node->next) {
 3514                          finfo=PITEM_FINFO(ptree_node);
 3515                          if (hfssrc==finfo->hfinfo) {
 3516                                  if (hfinformation->type==FT_IPv4) {
 3517                                          ipv4 = fvalue_get(&finfo->value);
 3518                                          *p_result = ipv4_get_net_order_addr(ipv4);
 3519                                  }
 3520                                  else {
 3521                                          *p_result = fvalue_get_uinteger(&finfo->value);
 3522                                  }
 3523                                  return TRUE;
 3524                          }
 3525                  }
 3526                  if(!ptree_node)
 3527                          return FALSE;
 3528          }
 3529   
 3530          proto_sibling_node = ptree_node->next;
 3531   
 3532          if (proto_sibling_node) {
 3533                  return process_node(proto_sibling_node, hfinformation, proto_field, p_result);
 3534          }
 3535          else 
 3536          return FALSE;
 3537  }
Show more  




Change Warning 4416.30542 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: