diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-03-02 20:44:13 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-03-02 20:44:13 +0000 |
commit | 5db299677d52b0073b277f751a0995b066c14945 (patch) | |
tree | 49d168045e033ecb318e7e687f2f660c50b89cfe /epan/dissectors/packet-iscsi.c | |
parent | fc662e52616846267453958c4a705cba2c26da0d (diff) |
Fix for bug 783 from Didier Gautheron
I know nothing about iscsi , but try the attached patch. It fix the
wrong desegmentation and the ethereal bug isn't triggered anymore.
svn path=/trunk/; revision=17445
Diffstat (limited to 'epan/dissectors/packet-iscsi.c')
-rw-r--r-- | epan/dissectors/packet-iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c index 60354a46f2..9010bc04d1 100644 --- a/epan/dissectors/packet-iscsi.c +++ b/epan/dissectors/packet-iscsi.c @@ -1747,7 +1747,6 @@ dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean chec guint iSCSIPdusDissected = 0; guint offset = 0; guint32 available_bytes = tvb_length_remaining(tvb, offset); - guint32 pduLen = 48; int digestsActive = 1; conversation_t *conversation = NULL; iscsi_session_t *iscsi_session=NULL; @@ -1763,6 +1762,7 @@ dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean chec while(available_bytes >= 48 || (iscsi_desegment && available_bytes >= 8)) { const char *opcode_str = NULL; guint32 data_segment_len; + guint32 pduLen = 48; guint8 opcode = tvb_get_guint8(tvb, offset + 0); guint8 secondPduByte = tvb_get_guint8(tvb, offset + 1); int badPdu = FALSE; |