From 24eb2e7b6e167d15cc6e99042a2e4c665e9b1dbc Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 23 Mar 2011 04:50:17 +0000 Subject: [PATCH] The NSG bits in the login pdu are 0x0c not 0xc0 coverity 344 svn path=/trunk/; revision=36273 --- epan/dissectors/packet-iscsi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c index ca0299540e..7688643440 100644 --- a/epan/dissectors/packet-iscsi.c +++ b/epan/dissectors/packet-iscsi.c @@ -1778,8 +1778,8 @@ dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean chec return FALSE; } /* CSG and NSG must not be 2 */ - if(((tmpbyte&0x03)==0x02) - || ((tmpbyte&0xc0)==0x08)){ + if(((tmpbyte & 0x03) == 0x02) + || ((tmpbyte & 0x0c) == 0x08)) { return FALSE; } /* if T bit is set NSG must not be 0 */ @@ -1809,8 +1809,8 @@ dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean chec return FALSE; } /* CSG and NSG must not be 2 */ - if(((tmpbyte&0x03)==0x02) - || ((tmpbyte&0xc0)==0x08)){ + if(((tmpbyte & 0x03) == 0x02) + || ((tmpbyte & 0x0c) == 0x08)) { return FALSE; } /* if T bit is set NSG must not be 0 */