diff options
author | Eric Biggers <[email protected]> | 2017-11-05 18:30:47 -0800 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2017-11-10 19:20:20 +0800 |
commit | 5829cc8da94f500b0c1fe82688d89fd36a1a9a41 (patch) | |
tree | 570141e078eadcbf1f8548314388afdb9f5baf2d /lib/mpi/mpi-pow.c | |
parent | ccd9888f14a8019c0bbdeeae758aba1f58693712 (diff) |
crypto: qat - Clean up error handling in qat_dh_set_secret()
Update the error handling in qat_dh_set_secret() to mirror
dh_set_secret(). The new version is less error-prone because freeing
memory and setting the pointers to NULL is now only done in one place.
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions