This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new 793c5bfe7 Use the Global delete function for Global references
793c5bfe7 is described below
commit 793c5bfe79f44be037bfa11ad6817b70b983b4a9
Author: gastush <[email protected]>
AuthorDate: Fri Sep 26 20:18:35 2025 +0200
Use the Global delete function for Global references
---
native/src/sslcontext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 72feb4324..4dbac79bf 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -1860,7 +1860,7 @@ TCN_IMPLEMENT_CALL(void, SSLContext,
setCertVerifyCallback)(TCN_STDARGS, jlong c
}
// Delete the reference to the previous specified verifier if needed.
if (c->verifier != NULL) {
- (*e)->DeleteLocalRef(e, c->verifier);
+ (*e)->DeleteGlobalRef(e, c->verifier);
}
c->verifier = (*e)->NewGlobalRef(e, verifier);
c->verifier_method = method;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]