mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#8949 Check eblock exists before freeing
cn=config changes might cause slapi_plugins_used transition from 0 during the lifetime of operation (cn=config change or syncrepl) or a connection and we should be able to deal with that.
This commit is contained in:
parent
6b46232ab8
commit
71560032f4
@ -295,7 +295,7 @@ int slapi_int_free_object_extensions(int objecttype, void *object)
|
||||
|
||||
eblock = (struct slapi_extension_block *)*peblock;
|
||||
|
||||
if ( eblock->extensions != NULL ) {
|
||||
if ( eblock != NULL && eblock->extensions != NULL ) {
|
||||
for ( i = registered_extensions.extensions[objecttype].count - 1; i >= 0; --i ) {
|
||||
free_extension( eblock, objecttype, object, parent, i );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user