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:
Ondřej Kuzník 2020-06-11 11:39:08 +01:00 committed by Quanah Gibson-Mount
parent 6b46232ab8
commit 71560032f4

View File

@ -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 );
}