Projects
Eulaceura:Mainline:GA
libwd
_service:obs_scm:0019-wd_dh-Fix-wd_aead_uninit-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0019-wd_dh-Fix-wd_aead_uninit-re-entry.patch of Package libwd
From 72d2f8d98ee7322463f66be3aa8dea7a9e0b0811 Mon Sep 17 00:00:00 2001 From: Zhangfei Gao <zhangfei.gao@linaro.org> Date: Tue, 19 Mar 2024 02:37:51 +0000 Subject: [PATCH 19/44] wd_dh: Fix wd_aead_uninit re-entry Check status for the re-entry Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> --- wd_dh.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wd_dh.c b/wd_dh.c index d23bb61..4d08de6 100644 --- a/wd_dh.c +++ b/wd_dh.c @@ -127,6 +127,12 @@ out_clear_ctx_config: static int wd_dh_common_uninit(void) { + enum wd_status status; + + wd_alg_get_init(&wd_dh_setting.status, &status); + if (status == WD_UNINIT) + return -WD_EINVAL; + /* uninit async request pool */ wd_uninit_async_request_pool(&wd_dh_setting.pool); -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2