Clean up the "round up to a multiple of 4" code a bit.

svn path=/trunk/; revision=45548
This commit is contained in:
Guy Harris 2012-10-14 22:53:25 +00:00
parent 26ddc4c04f
commit 85b3da7c63
1 changed files with 2 additions and 2 deletions

View File

@ -1002,8 +1002,8 @@ dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint off
}
/* strip off padding bytes */
if(ahs_offset&0x0003){
ahs_offset=(ahs_offset+3)&0xfffffffc;
if(ahs_offset & 3){
ahs_offset=(ahs_offset+3) & ~3;
}
}