The NSG bits in the login pdu are 0x0c not 0xc0

coverity 344


svn path=/trunk/; revision=36273
This commit is contained in:
Ronnie Sahlberg 2011-03-23 04:50:17 +00:00
parent 31b01ae88e
commit 24eb2e7b6e
1 changed files with 4 additions and 4 deletions

View File

@ -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 */