35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 5cc3edb9732784e8a3edb033962b6312f2bb7b55 Mon Sep 17 00:00:00 2001
|
|
From: Mark Reynolds <mreynolds@redhat.com>
|
|
Date: Wed, 4 Mar 2026 14:47:01 -0500
|
|
Subject: [PATCH] Issue 7271 - Add new plugin pre-close function check to
|
|
plugin_invoke_plugin_pb
|
|
|
|
Description:
|
|
|
|
In plugin_invoke_plugin_pb we were not checking for the new pre-close function
|
|
which led to an error in the logs: pb_op is NULL. In a debug build this leads
|
|
to an assertion error at shutdown.
|
|
|
|
relates: https://github.com/389ds/389-ds-base/issues/7271
|
|
|
|
Reviewed by: vashirov(Thanks!)
|
|
---
|
|
ldap/servers/slapd/plugin.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/ldap/servers/slapd/plugin.c b/ldap/servers/slapd/plugin.c
|
|
index 95b8de894..c1b0571eb 100644
|
|
--- a/ldap/servers/slapd/plugin.c
|
|
+++ b/ldap/servers/slapd/plugin.c
|
|
@@ -3647,6 +3647,7 @@ plugin_invoke_plugin_pb(struct slapdplugin *plugin, int operation, Slapi_PBlock
|
|
if (operation == SLAPI_PLUGIN_START_FN ||
|
|
operation == SLAPI_PLUGIN_POSTSTART_FN ||
|
|
operation == SLAPI_PLUGIN_CLOSE_FN ||
|
|
+ operation == SLAPI_PLUGIN_PRE_CLOSE_FN ||
|
|
operation == SLAPI_PLUGIN_CLEANUP_FN ||
|
|
operation == SLAPI_PLUGIN_BE_PRE_CLOSE_FN ||
|
|
operation == SLAPI_PLUGIN_BE_POST_OPEN_FN ||
|
|
--
|
|
2.53.0
|
|
|