Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at mcast_stream_dlg.c:191

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

mcaststream_on_filter

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/mcast_stream_dlg.c)expand/collapse
Show more  
 181  mcaststream_on_filter                    (GtkButton       *button _U_,
 182                                          gpointer         user_data _U_)
 183  {
 184          gchar *filter_string = NULL;
 185          gchar *filter_string_fwd = NULL;
 186          gchar ip_version[3];
 187   
 188          if (selected_stream_fwd==NULL)
 189                  return;
 190   
 191          if (selected_stream_fwd)
 192          {
 193                  if (selected_stream_fwd->src_addr.type==AT_IPv6){
 194                      g_strlcpy(ip_version,"v6",sizeof(ip_version));
 195                  }                
 196                  else{
 197                          ip_version[0] = '\0';
 198                  }
 199                  filter_string_fwd = g_strdup_printf(
 200                          "(ip%s.src==%s && udp.srcport==%u && ip%s.dst==%s && udp.dstport==%u)",
 201                          ip_version,
 202                          address_to_str(&(selected_stream_fwd->src_addr)),
 203                          selected_stream_fwd->src_port,
 204                          ip_version,
 205                          address_to_str(&(selected_stream_fwd->dest_addr)),
 206                          selected_stream_fwd->dest_port);
 207          filter_string = filter_string_fwd;
 208          }
 209   
 210          gtk_entry_set_text(GTK_ENTRY(main_display_filter_widget), filter_string);
 211          g_free(filter_string);
 212   
 213  /*
 214          main_filter_packets(&cfile, filter_string, FALSE);
 215          mcaststream_dlg_update(mcaststream_get_info()->strinfo_list);
 216  */
 217  }
Show more  




Change Warning 4402.30817 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: