diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2009-09-04 13:10:59 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2009-09-04 13:10:59 +0000 |
commit | 471111ffc6afc5cfa66427d0d3b2482102b9d546 (patch) | |
tree | e99c6c767ae70d8f3663e77d7f1880497b9a1a01 /gtk/sctp_graph_dlg.c | |
parent | 648bdb564bd49784b79310882e6d162f380cdb0a (diff) | |
download | wireshark-471111ffc6afc5cfa66427d0d3b2482102b9d546.tar.gz wireshark-471111ffc6afc5cfa66427d0d3b2482102b9d546.tar.bz2 wireshark-471111ffc6afc5cfa66427d0d3b2482102b9d546.zip |
Fix handling of multiple duplicate TSNs.
svn path=/trunk/; revision=29697
Diffstat (limited to 'gtk/sctp_graph_dlg.c')
-rw-r--r-- | gtk/sctp_graph_dlg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index ca88591213..3ed44596f3 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -266,10 +266,10 @@ static void draw_sack_graph(struct sctp_udata *u_data) } if (dup_nr > 0) { - dup_list = (guint32 *)(&(sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps))); - dup = g_ntohl(dup_list[0]); + dup_list = (guint32 *)(((char *)&sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps))); for(i = 0; i < dup_nr; i++) { + dup = g_ntohl(dup_list[i]); if (dup >= min_tsn) { if (u_data->io->uoff) @@ -287,8 +287,6 @@ static void draw_sack_graph(struct sctp_udata *u_data) yvalue, POINT_SIZE, POINT_SIZE,0, (64*360) ); } - if (i < dup_nr-1) - dup++; } } } |