diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-06-24 11:26:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-06-24 11:26:19 +0000 |
commit | 79105d1251ecefc751d734078cede620557f632c (patch) | |
tree | 70e736962b24573a4529954c53c06b2c5db8d596 /ethereal_gen.py | |
parent | 0392684ab739e84eb9f4f6899d1d47c12f88697d (diff) | |
download | wireshark-79105d1251ecefc751d734078cede620557f632c.tar.gz |
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.)
svn path=/trunk/; revision=14743
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r-- | ethereal_gen.py | 6 |
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; + """ |