aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-08 11:03:58 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-08 18:04:22 +0000
commit7d458fa4a6d10f4e79b2b90dc3355c1c802b09da (patch)
treece2ce325ed9b4fea18eea10edb50b0bc663aa63c /epan
parentbeb4876cb4dda2b9964c223041386e5e6e33a31e (diff)
Make sure IPv4 address structures really have 4 bytes of data.
Change-Id: If89827677f7503fc67ba9a025f28447a68a98f07 Reviewed-on: https://code.wireshark.org/review/1025 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-lbmr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lbmr.c b/epan/dissectors/packet-lbmr.c
index 32cf854c02..6387b87249 100644
--- a/epan/dissectors/packet-lbmr.c
+++ b/epan/dissectors/packet-lbmr.c
@@ -2045,7 +2045,8 @@ static gboolean lbmr_match_packet(packet_info * pinfo, const lbmr_tag_entry_t *
guint32 dest_addr_h;
guint32 src_addr_h;
- if (pinfo->dst.type != AT_IPv4 || pinfo->src.type != AT_IPv4)
+ if ((pinfo->dst.type != AT_IPv4) || (pinfo->dst.len != 4) ||
+ (pinfo->src.type != AT_IPv4) || (pinfo->src.len != 4))
return (FALSE);
dest_addr_h = pntoh32(pinfo->dst.data);
src_addr_h = pntoh32(pinfo->src.data);