tls: allocate the fallback aead after checking that the cipher is valid
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 25 Aug 2023 21:35:16 +0000 (23:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 00:17:42 +0000 (17:17 -0700)
commitd2322cf5ed59f084ac86d9339f7c3acccd177bfd
tree605ac75069f478a66aea9b766a1aadd6b0f41694
parent3524dd4d5f1fb9e75fdfaf280822a34fa82059bd
tls: allocate the fallback aead after checking that the cipher is valid

No need to allocate the aead if we're going to fail afterwards.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/335e32511ed55a0b30f3f81a78fa8f323b3bdf8f.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_device_fallback.c