aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-v120.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-08-22 14:02:05 +0000
committerBill Meier <wmeier@newsguy.com>2008-08-22 14:02:05 +0000
commit50fc84d3295acb4bf837b7438606d7d85967092a (patch)
treee63cd0ad7c554457bd93b4e4aedc169b504b2711 /epan/dissectors/packet-v120.c
parentf2bdbd6a7f39f035c653a5c4bcfb579c29e91bf8 (diff)
Fix a case of && which should be &; add some parentheses for clarity
svn path=/trunk/; revision=26057
Diffstat (limited to 'epan/dissectors/packet-v120.c')
-rw-r--r--epan/dissectors/packet-v120.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-v120.c b/epan/dissectors/packet-v120.c
index 438c731965..9072a46471 100644
--- a/epan/dissectors/packet-v120.c
+++ b/epan/dissectors/packet-v120.c
@@ -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");