aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wol.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-wol.c')
-rw-r--r--epan/dissectors/packet-wol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wol.c b/epan/dissectors/packet-wol.c
index 046a301206..8f84c12e11 100644
--- a/epan/dissectors/packet-wol.c
+++ b/epan/dissectors/packet-wol.c
@@ -98,7 +98,7 @@ dissect_wol_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data
* in Wireshark handing an HTTP packet to your dissector). For example:
*/
/* Check that there's enough data */
- len = tvb_length(tvb);
+ len = tvb_captured_length(tvb);
if ( len < 102 ) /* wol's smallest packet size is 102 */
return (0);