From: Ian Jackson Date: Wed, 20 Jun 2012 23:23:13 +0000 (+0100) Subject: site: Remove pointless check from decrypt_msg0 X-Git-Tag: debian/0.3.0_beta1~11 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/94c61b9cd7bf02f4cebfe0fb580db61e6e8bf636?ds=inline;hp=94c61b9cd7bf02f4cebfe0fb580db61e6e8bf636 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 ---