You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pe...@apache.org on 2022/03/26 08:16:19 UTC
[celix] 01/01: Fix RSA use-after-free.
This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch hotfix/rsa_use_after_free
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 16ca774e87d653197502d3466031cb80b7dce0b1
Author: PengZheng <ho...@gmail.com>
AuthorDate: Sat Mar 26 16:15:30 2022 +0800
Fix RSA use-after-free.
See https://github.com/apache/celix/issues/406
---
bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c b/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c
index 355e543..b03f2a7 100644
--- a/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c
+++ b/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c
@@ -275,6 +275,7 @@ celix_status_t endpointDiscoveryPoller_poll(endpoint_discovery_poller_t *poller,
arrayList_add(currentEndpoints, endpoint);
status = discovery_addDiscoveredEndpoint(poller->discovery, endpoint);
} else {
+ status = discovery_removeDiscoveredEndpoint(poller->discovery, endpoint);
endpointDescription_destroy(endpoint);
}