You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/07/06 17:00:42 UTC
[trafficserver] branch 9.2.x updated: Allows errors from plugin initialization to bubble up (#8926)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new d0a46b7b8 Allows errors from plugin initialization to bubble up (#8926)
d0a46b7b8 is described below
commit d0a46b7b8716ebbc310deb7029d9449861088e91
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Mon Jun 27 11:16:34 2022 -0700
Allows errors from plugin initialization to bubble up (#8926)
Prior to this change, if plugin initialization fails, the error message from plugin init
would get cleared when trying to unload the DSO.
(cherry picked from commit 6ee1c6b27893262b3aa12d176cdc86a165b64b4c)
---
proxy/http/remap/PluginDso.cc | 3 ---
1 file changed, 3 deletions(-)
diff --git a/proxy/http/remap/PluginDso.cc b/proxy/http/remap/PluginDso.cc
index d4467b8ce..eb600a5f0 100644
--- a/proxy/http/remap/PluginDso.cc
+++ b/proxy/http/remap/PluginDso.cc
@@ -125,8 +125,6 @@ PluginDso::load(std::string &error)
bool
PluginDso::unload(std::string &error)
{
- /* clean errors */
- error.clear();
bool result = false;
if (isLoaded()) {
@@ -158,7 +156,6 @@ PluginDso::getSymbol(const char *symbol, void *&address, std::string &error) con
{
/* Clear the errors */
dlerror();
- error.clear();
address = dlsym(_dlh, symbol);
char *err = dlerror();