diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-11-05 01:51:50 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-11 00:23:16 +0000 |
commit | 541f352b5efa8b51769d49c7e62c2109b9c3651a (patch) | |
tree | e640ea70d29076c7b018377a170e4f65a3d3dedc /epan/dissectors/packet-udp.c | |
parent | c2afc9edec79b247d02f42ba3c7cad2bc24b9f91 (diff) |
UDP: Don't throw malformed errors for empty UDP payload
Change-Id: I7f5724e263ab81d42421d0cfcb1fc4b63a55d79e
Reviewed-on: https://code.wireshark.org/review/11590
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-udp.c')
-rw-r--r-- | epan/dissectors/packet-udp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c index d60f9d68da..cabd9051e8 100644 --- a/epan/dissectors/packet-udp.c +++ b/epan/dissectors/packet-udp.c @@ -975,6 +975,11 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto) } } + if (udph->uh_ulen == 8) { + /* Empty UDP payload, nothing left to do. */ + return; + } + /* * Call sub-dissectors. * |