Fix a case of && which should be &; add some parentheses for clarity
svn path=/trunk/; revision=26057
This commit is contained in:
parent
f2bdbd6a7f
commit
50fc84d329
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue