diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-09-15 20:28:24 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-09-15 19:52:53 +0000 |
commit | 3f8384d7797cb07f220cad998620aa2b1ee11960 (patch) | |
tree | cc090e097f3d98d5a8e4ed0485d84394484d250c /epan/dissectors/packet-tns.c | |
parent | 8b11e37f81d567921faacc5302f4b87268912484 (diff) |
epan: Fix misuse of comma operator
Change-Id: I349dc9896db0bd306bc92f92eb9d4a65d98d309c
Reviewed-on: https://code.wireshark.org/review/23558
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/dissectors/packet-tns.c')
-rw-r--r-- | epan/dissectors/packet-tns.c | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c index e6da6969b6..63a262857a 100644 --- a/epan/dissectors/packet-tns.c +++ b/epan/dissectors/packet-tns.c @@ -632,10 +632,16 @@ static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo, prot */ /* Orac[le.+] */ if ( tvb_get_ntohl(tvb, offset+2) == 0x4f726163 ) - opi = OPI_VERSION2, skip = 1; + { + opi = OPI_VERSION2; + skip = 1; + } else if ( tvb_get_ntohl(tvb, offset+3) == 0x4f726163 ) - opi = OPI_VERSION2, skip = 2; + { + opi = OPI_VERSION2; + skip = 2; + } /* * OPI_OSESSKEY response has a following pattern: @@ -650,10 +656,16 @@ static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo, prot */ /* ....AUTH (v1) */ else if ( tvb_get_ntoh64(tvb, offset+3) == 0x0000000c41555448 ) - opi = OPI_OSESSKEY, skip = 1; + { + opi = OPI_OSESSKEY; + skip = 1; + } /* ..AUTH_V (v2) */ else if ( tvb_get_ntoh64(tvb, offset+3) == 0x0c0c415554485f53 ) - opi = OPI_OSESSKEY, skip = 2; + { + opi = OPI_OSESSKEY; + skip = 2; + } /* * OPI_OAUTH response has a following pattern: @@ -669,11 +681,16 @@ static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo, prot /* ....AUTH (v1) */ else if ( tvb_get_ntoh64(tvb, offset+3) == 0x0000001341555448 ) - opi = OPI_OAUTH, skip = 1; + { + opi = OPI_OAUTH; + skip = 1; + } /* ..AUTH_V (v2) */ else if ( tvb_get_ntoh64(tvb, offset+3) == 0x1313415554485f56 ) - opi = OPI_OAUTH, skip = 2; - + { + opi = OPI_OAUTH; + skip = 2; + } } if ( opi == OPI_VERSION2 ) |