Skip to content
Snippets Groups Projects
Commit 281b7352 authored by jkerdreu's avatar jkerdreu
Browse files

Fix the wrong header test, found by Ferllings

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1641 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8b15c6ed
Branches
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ class MessageFactory(object):
msg.targets = json.loads(data_rx['targets'])
msg.version = data_rx['version']
msg_time = data_rx['timestamp'][0]
except KeyError:
except (KeyError, IndexError):
raise MessageParserError("Bad Message, wrong fields")
# Replay attack, window fixed to CIPHER_WINDOW in seconds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment