aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-frame.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-06 21:38:43 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-06 21:38:43 +0000
commit84cf5472e9fffefbd3e9984adb1a7ec9c4ebe33f (patch)
tree5bcb5812006ce622179a9c732c50de8788f14c95 /epan/dissectors/packet-frame.h
parentf618b54d368be8ee5b26c982f492d4132cda1f16 (diff)
If a dissector writer directly throws DissectorError, don't punish the
user by crashing due to a null pointer dereference, punish the dissector writer by saying he or she didn't bother providing an explanation of the error. The exception message isn't a const string any more; make the "exception_message" argument to "show_exception()" a "char *", not a "const char *". svn path=/trunk/; revision=15251
Diffstat (limited to 'epan/dissectors/packet-frame.h')
-rw-r--r--epan/dissectors/packet-frame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-frame.h b/epan/dissectors/packet-frame.h
index 1430fb1544..c604395486 100644
--- a/epan/dissectors/packet-frame.h
+++ b/epan/dissectors/packet-frame.h
@@ -27,7 +27,7 @@
* Routine used to add an indication of an arbitrary exception to the tree.
*/
void show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
- unsigned long exception, const char *exception_message);
+ unsigned long exception, char *exception_message);
/*
* Routine used to add an indication of a ReportedBoundsError exception