Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at sctp_stat_dlg.c:195

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

sctp_stat_on_select_row

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_stat_dlg.c)expand/collapse
Show more  
 179  sctp_stat_on_select_row(GtkCList *clist, gint row, gint column _U_,
 180                          GdkEventButton *event _U_, gpointer user_data _U_)
 181  {
 182          gchar *text[1];
 183          guint16 port1, port2;
 184          guint32 checksum, data_chunks, data_bytes, packets, vtag1, vtag2;
 185          GList *list;
 186          sctp_assoc_info_t* assoc;
 187          gboolean stream_found=FALSE;
 188   
 189          gtk_clist_get_row_data(GTK_CLIST(clist), row);
 190          gtk_clist_get_text(GTK_CLIST(clist), row, 0, text);
 191          port1=atoi(text[0]);
 192          gtk_clist_get_text(GTK_CLIST(clist), row, 1, text);
 193          port2=atoi(text[0]);
 194          gtk_clist_get_text(GTK_CLIST(clist), row, 7, text);
 195          sscanf(text[0],"0x%x",&vtag1);
 196          gtk_clist_get_text(GTK_CLIST(clist), row, 8, text);
 197          sscanf(text[0],"0x%x",&vtag2);
 198          gtk_clist_get_text(GTK_CLIST(clist), row, 2, text);
 199          packets=atoi(text[0]);
 200          gtk_clist_get_text(GTK_CLIST(clist), row, 4, text);
 201          checksum=atoi(text[0]);
 202          gtk_clist_get_text(GTK_CLIST(clist), row, 5, text);
 203          data_chunks=atoi(text[0]);
 204          gtk_clist_get_text(GTK_CLIST(clist), row, 6, text);
 205          data_bytes=atoi(text[0]);
 206   
 207          list = g_list_first(sctp_assocs->assoc_info_list);
 208   
 209          while (list)
 210          {
 211                  assoc = (sctp_assoc_info_t*)(list->data);
 212                  if (assoc->port1==port1 && assoc->port2==port2  
 213                  && assoc->n_packets==packets && assoc->n_data_chunks==data_chunks && assoc->n_data_bytes==data_bytes  
 214                  && assoc->verification_tag1==vtag1 && assoc->verification_tag2==vtag2)
 215                  {
 216                          selected_stream=assoc;
 217                          stream_found=TRUE;
 218                          break;
 219                  }
 220                  list=g_list_next(list);
 221          }
 222   
 223          if (!stream_found)
 224                  selected_stream = NULL;
 225   
 226          gtk_widget_set_sensitive(bt_unselect,TRUE);
 227          gtk_widget_set_sensitive(bt_analyse,TRUE);
 228          gtk_widget_set_sensitive(bt_filter,TRUE);
 229  }
Show more  




Change Warning 5517.35797 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: