Minor correction to SVN revision 34084: we better only try up to the 9

available values in flags[], so we don't run past the end of the array
if one of the reserved flags is set. 


svn path=/trunk/; revision=34085
This commit is contained in:
Stephen Fisher 2010-09-08 20:52:00 +00:00
parent dfacac4421
commit e12fc91a33

View file

@ -3244,7 +3244,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->cinfo, COL_INFO) || tree) {
gboolean first_flag = TRUE;
for (i = 0; i < 12; i++) {
for (i = 0; i < 9; i++) {
bpos = 1 << i;
if (tcph->th_flags & bpos) {
if (first_flag) {