]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a couple of bugs for asym crypto introduced in r359374.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 19 Oct 2020 20:04:03 +0000 (20:04 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 19 Oct 2020 20:04:03 +0000 (20:04 +0000)
commite7f6b6cf697c899b0cd18b55470fd564f3fc4fbe
treecfd415095e26083973b286c36ee029d690cab3e2
parent4fa4bd6312cbeebda23a80feb77f29691af0cd7b
Fix a couple of bugs for asym crypto introduced in r359374.

- Check for null pointers in the crypto_drivers[] array when checking
  for empty slots in crypto_select_kdriver().

- Handle the case where crypto_kdone() is invoked on a request where
  krq_cap is NULL due to not finding a matching driver.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D26811
sys/opencrypto/crypto.c