aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/giop/packet-coseventcomm.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-05-30 16:03:24 +0000
committerGerald Combs <gerald@wireshark.org>2005-05-30 16:03:24 +0000
commit81a381effd474b443828324e52725734a221820c (patch)
tree4a964af2ffc37e9be1ab66d8336f1d1c64b0a49a /plugins/giop/packet-coseventcomm.c
parentb133b98f15840eb75e2c9b4a3f61ea1fa73cb822 (diff)
Throw an exception if we're handed a null pointer when we weren't
expecting one. Fixes bug 200. svn path=/trunk/; revision=14488
Diffstat (limited to 'plugins/giop/packet-coseventcomm.c')
-rw-r--r--plugins/giop/packet-coseventcomm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/giop/packet-coseventcomm.c b/plugins/giop/packet-coseventcomm.c
index d44ce4231d..6a352a39e7 100644
--- a/plugins/giop/packet-coseventcomm.c
+++ b/plugins/giop/packet-coseventcomm.c
@@ -704,6 +704,8 @@ static gboolean dissect_coseventcomm(tvbuff_t *tvb, packet_info *pinfo, proto_tr
case Request:
case Reply:
+ if (!operation)
+ THROW(ReportedBoundsError);
if (!strcmp(operation, CosEventComm_PushConsumer_push_op )) {
decode_CosEventComm_PushConsumer_push(tvb, pinfo, tree, offset, header, operation);