diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2011-03-23 04:50:17 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2011-03-23 04:50:17 +0000 |
commit | 24eb2e7b6e167d15cc6e99042a2e4c665e9b1dbc (patch) | |
tree | e96321a62a591bac8b411e8ca8b8c7e657826e12 /epan/dissectors/packet-iscsi.c | |
parent | 31b01ae88e8750ee6ca2d5697fb7b8880835abb7 (diff) |
The NSG bits in the login pdu are 0x0c not 0xc0
coverity 344
svn path=/trunk/; revision=36273
Diffstat (limited to 'epan/dissectors/packet-iscsi.c')
-rw-r--r-- | epan/dissectors/packet-iscsi.c | 8 |
1 files 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 */ |