Commit 71560032 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

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.
parent 6b46232a
Pipeline #478 passed with stage
in 26 minutes and 5 seconds
......@@ -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 );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment