From 40f99625ee4447aa36c0fa5631ffa13b7003569f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 17 Sep 2013 15:31:51 -0700 Subject: dsdb-repl_meta_data: Check for a NULL invocationID and do not proceed This can happen if we do not find the invocationID, with later patches. Andrew Bartlett Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index c8cdfecb93..7bd0265f9d 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -4839,6 +4839,10 @@ static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *a /* get our invocation_id if we have one already attached to the ldb */ our_invocation_id = samdb_ntds_invocation_id(ldb); + if (our_invocation_id == NULL) { + DEBUG(0, ("repl_meta_data: Could not find our own server's invocationID!\n")); + return replmd_replicated_request_werror(ar, WERR_DS_DRA_INTERNAL_ERROR); + } /* merge in the source_dsa vector is available */ for (i=0; (ruv && i < ruv->count); i++) { -- cgit