diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-22 14:02:05 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-22 14:02:05 +0000 |
commit | f23fa88cd8bece61bab82559036340c5afeae423 (patch) | |
tree | e63cd0ad7c554457bd93b4e4aedc169b504b2711 /epan/dissectors/packet-v120.c | |
parent | 2393b1b07828c654451cb0a570d0de4a82d34156 (diff) |
Fix a case of && which should be &; add some parentheses for clarity
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26057 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-v120.c')
-rw-r--r-- | epan/dissectors/packet-v120.c | 2 |
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"); |