aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-06-24 11:26:19 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-06-24 11:26:19 +0000
commitb681fe66f03813dbb8f9300a6687030f052adafb (patch)
tree70e736962b24573a4529954c53c06b2c5db8d596 /ethereal_gen.py
parent3ba28c4f4fd51f8f1278d53a1f0924c8fc1ff18c (diff)
There's no guarantee that a reply with a reply status of USER_EXCEPTION
includes an exception ID - the sequence length could be zero. When generating a dissector for a USER_EXCEPTION reply, return FALSE if there's no exception ID. (And since we're now always using the header pointer argument, un-_U_ize it.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14743 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 43ce7cb51d..70c05de44b 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -2340,11 +2340,13 @@ default:
*
*/
-static gboolean decode_user_exception(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_ ) {
+static gboolean decode_user_exception(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header, gchar *operation _U_ ) {
gboolean be _U_; /* big endianess */
-
+ if (!header->exception_id)
+ return FALSE;
+
"""