site: Remove pointless check from decrypt_msg0
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2012 23:23:13 +0000 (00:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jul 2012 19:02:21 +0000 (20:02 +0100)
commit94c61b9cd7bf02f4cebfe0fb580db61e6e8bf636
tree9f56ef304c540404db3bf38c68f226cd52388411
parent065e1922e00c787775b595badce0e40a999a6afb
site: Remove pointless check from decrypt_msg0

It is not necessary to check whether we have a current key before
attempting to unpick and decrypt a MSG0.  If we don't,
transform->reverse will simply fail due to lacking a key.

This check needs to be removed, because in forthcoming patches we will
want to be able to try to decrypt the packet with other keys, at which
point the lack of a currently valid data transfer key will not be
relevant and this check will be harmful.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site.c