From 50fc84d3295acb4bf837b7438606d7d85967092a Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 22 Aug 2008 14:02:05 +0000 Subject: [PATCH] Fix a case of && which should be &; add some parentheses for clarity svn path=/trunk/; revision=26057 --- epan/dissectors/packet-v120.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");