Skip to content

Commit

Permalink
Fix issues in IpxPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
BonnyAD9 committed Jun 13, 2024
1 parent 091ce67 commit 11f1221
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/plugins/input/tcp/src/IpxPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ IPX_API struct ipx_plugin_info ipx_plugin_info = {
};

using namespace tcp_in;
using namespace std;

int ipx_plugin_init(ipx_ctx_t *ctx, const char *params) {
Plugin *plugin;

try {
Config conf(params);
plugin = new Plugin(ctx, conf);
} catch (exception &ex) {
} catch (std::exception &ex) {
IPX_CTX_ERROR(ctx, "%s", ex.what());
return IPX_ERR_DENIED;
}
Expand All @@ -53,7 +52,7 @@ int ipx_plugin_get(ipx_ctx_t *ctx, void *cfg) {

try {
plugin->get();
} catch (exception &ex) {
} catch (std::exception &ex) {
IPX_CTX_ERROR(ctx, "%s", ex.what());
return IPX_ERR_DENIED;
}
Expand All @@ -66,7 +65,7 @@ void ipx_plugin_session_close(ipx_ctx_t *ctx, void *cfg, const struct ipx_sessio

try {
plugin->close_session(session);
} catch (exception &ex) {
} catch (std::exception &ex) {
IPX_CTX_ERROR(ctx, "%s", ex.what());
}
}
Expand Down

0 comments on commit 11f1221

Please sign in to comment.