s4:schema_load LDB module - fix a segfault condition on schema refresh
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 3 Jul 2010 12:33:23 +0000 (14:33 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 3 Jul 2010 13:28:57 +0000 (15:28 +0200)
commit326aac06f52a1e4d37449622e02d561ee12608cf
tree9e241449564ff5c8e51ba4a2940feecc726fc025
parent02eab6602640e73f295a37019c0989dbd799229b
s4:schema_load LDB module - fix a segfault condition on schema refresh

The schema refresh operation itself starts requests from the top of the LDB
modules stack (see call "dsdb_schema_set_attributes" - search operations).
This doesn't work well when these do perform "dsdb_get_schema" calls. Since the
new schema isn't marked as "refreshed" atm (but in fact it still is - we didn't
terminate the reload/refresh yet) we could perform other calls to
"dsdb_schema_refresh" and run into serious trouble (segfault).
source4/dsdb/samdb/ldb_modules/schema_load.c