forked from osmocom/wireshark
mongo: fix document depth tracking
Fixes a "BSON document recursion exceeds" error on lists of > 100 documents.
This commit is contained in:
parent
ae0c38a07a
commit
2b43f5f650
|
@ -469,6 +469,10 @@ dissect_bson_document(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto_tre
|
||||||
} /* end switch() */
|
} /* end switch() */
|
||||||
} while (offset < final_offset-1);
|
} while (offset < final_offset-1);
|
||||||
|
|
||||||
|
// Restore depth.
|
||||||
|
nest_level--;
|
||||||
|
p_set_proto_depth(pinfo, proto_mongo, nest_level);
|
||||||
|
|
||||||
return document_length;
|
return document_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue