diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-26 17:02:25 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-26 19:06:07 +1000 |
commit | 6ee1c503bf90abbea137ce789ce5a8a54b437629 (patch) | |
tree | bb10dadd5cbeb4e6ba2eca5ed7abd33140f555fd /source4/rpc_server/drsuapi | |
parent | 159de40b0b5c2c3efc7bd4de83a15dc63299b730 (diff) | |
download | samba-6ee1c503bf90abbea137ce789ce5a8a54b437629.tar.gz samba-6ee1c503bf90abbea137ce789ce5a8a54b437629.tar.bz2 samba-6ee1c503bf90abbea137ce789ce5a8a54b437629.zip |
s4-drs: don't send uninstantiated objects in getncchanges
This includes deleted partitions
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 6a8ab3b201..90407a323e 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -132,6 +132,11 @@ static WERROR get_nc_changes_build_object(struct drsuapi_DsReplicaObjectListItem return WERR_OK; } + if (instanceType & INSTANCE_TYPE_UNINSTANT) { + /* don't send uninstantiated objects */ + return WERR_OK; + } + ndr_err = ndr_pull_struct_blob(md_value, obj, lp_iconv_convenience(ldb_get_opaque(sam_ctx, "loadparm")), &md, (ndr_pull_flags_fn_t)ndr_pull_replPropertyMetaDataBlob); |