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:18 UTC

[celix] branch hotfix/rsa_use_after_free created (now 16ca774)

This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a change to branch hotfix/rsa_use_after_free
in repository https://gitbox.apache.org/repos/asf/celix.git.


      at 16ca774  Fix RSA use-after-free.

This branch includes the following new commits:

     new 16ca774  Fix RSA use-after-free.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[celix] 01/01: Fix RSA use-after-free.

Posted by pe...@apache.org.
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);
 
 				}