diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-13 03:48:26 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-13 03:48:26 +0000 |
commit | 234c3bb75feb8830d8ce84b895159ed6e5044adf (patch) | |
tree | b2e52c51b78ab7dc0f49c8537cf7d946a03b667c /tools | |
parent | ae5a7bea0849a42f4fe00088f79f303d505061fc (diff) |
asn2eth.py:
Catch a TypeError that gets thrown if we don't use any conversion
specifiers during string formatting.
H.248:
Don't dereference a null pointer. Fixes bug 626.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16773 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/asn2eth.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py index 318855f292..530d5d0bf9 100755 --- a/tools/asn2eth.py +++ b/tools/asn2eth.py @@ -903,7 +903,10 @@ class EthCtx: elif self.conform.get_fn_body_presence(self.eth_type[tname]['ref'][0]): out = self.conform.get_fn_text(self.eth_type[tname]['ref'][0], 'FN_BODY') if pars: - out = out % pars + try: + out = out % pars + except (TypeError): + pass return out #--- eth_output_hf ---------------------------------------------------------- |