aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rgmp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-04-27 09:28:25 -0400
committerMichael Mann <mmann78@netscape.net>2017-04-27 16:33:57 +0000
commit3f7f131ef372ec3a22f6363ab89dcdc0fba2b377 (patch)
tree6a2ff34b2505277acee7c3da54a649ff02e87416 /epan/dissectors/packet-rgmp.c
parent92e61ed35b6d93094658140c18739032a05e5b5d (diff)
packet-rgmp.c: Ensure pinfo->dst is a valid IPv4 address
Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1243 Bug: 13646 Change-Id: I2174e79dd2a9679f099c87c55c33984aca891d22 Reviewed-on: https://code.wireshark.org/review/21368 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-rgmp.c')
-rw-r--r--epan/dissectors/packet-rgmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rgmp.c b/epan/dissectors/packet-rgmp.c
index 3ff8b0e13f..ebeffa7353 100644
--- a/epan/dissectors/packet-rgmp.c
+++ b/epan/dissectors/packet-rgmp.c
@@ -70,7 +70,7 @@ dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
guint32 dst = g_htonl(MC_RGMP);
/* Shouldn't be destined for us */
- if (memcmp(pinfo->dst.data, &dst, 4))
+ if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4))
return 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP");