Fix a case of && which should be &; add some parentheses for clarity

svn path=/trunk/; revision=26057
This commit is contained in:
Bill Meier 2008-08-22 14:02:05 +00:00
parent f2bdbd6a7f
commit 50fc84d329
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ dissect_v120(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
byte1 = tvb_get_guint8(tvb, 1);
if ((byte0 & 0x01) != 0x00 && (byte1 && 0x01) != 0x01)
if ( ((byte0 & 0x01) != 0x00) && ((byte1 & 0x01) != 0x01) )
{
if (check_col(pinfo->cinfo, COL_INFO))
col_set_str(pinfo->cinfo, COL_INFO, "Invalid V.120 frame");