diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-12-02 14:35:11 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-12-02 14:35:11 +0000 |
commit | 5430e701443baa72e4e2aad76a8ed30878026d48 (patch) | |
tree | 0ad7f026d0443b59f01553d0b3086370b766aa18 /epan/dissectors/packet-mongo.c | |
parent | a6b1581480a76483e42cc7da9d4f226d71d1d790 (diff) |
From Alexis La Goutte via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5460 :
MongoDB dissector improperly decodes cursorID in OP_KILL_CURSORS command.
The size of the CursorID is 64 bits, while the code assumes they are 4 bits,
though correctly incrementing the pointer. Fix this typo.
svn path=/trunk/; revision=35103
Diffstat (limited to 'epan/dissectors/packet-mongo.c')
-rw-r--r-- | epan/dissectors/packet-mongo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mongo.c b/epan/dissectors/packet-mongo.c index cf9608e97c..2a1179f0fc 100644 --- a/epan/dissectors/packet-mongo.c +++ b/epan/dissectors/packet-mongo.c @@ -324,7 +324,7 @@ dissect_mongo_kill_cursors(tvbuff_t *tvb, guint offset, proto_tree *tree) offset += 4; while(offset < tvb_reported_length(tvb)) { - proto_tree_add_item(tree, hf_mongo_cursor_id, tvb, offset, 4, ENC_LITTLE_ENDIAN); + proto_tree_add_item(tree, hf_mongo_cursor_id, tvb, offset, 8, ENC_LITTLE_ENDIAN); offset +=8; } return offset; |