summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-07 15:43:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:10 -0500
commit19d56c775a175c894a0e88ad6c9a918b6fa8c532 (patch)
treeca7606075675186ff3399f242c83ce3cbb23d9c2
parent31b47acf525d4b7b68f53920b33f599e20a623fb (diff)
downloadsamba-19d56c775a175c894a0e88ad6c9a918b6fa8c532.tar.gz
samba-19d56c775a175c894a0e88ad6c9a918b6fa8c532.tar.bz2
samba-19d56c775a175c894a0e88ad6c9a918b6fa8c532.zip
r22752: bail out on talloc failure
metze (This used to be commit da92bf88e55739daefd2a0c595e0fa61819fa348)
-rw-r--r--source4/wrepl_server/wrepl_scavenging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_scavenging.c b/source4/wrepl_server/wrepl_scavenging.c
index b75fa72abf..a5244f686b 100644
--- a/source4/wrepl_server/wrepl_scavenging.c
+++ b/source4/wrepl_server/wrepl_scavenging.c
@@ -498,6 +498,7 @@ NTSTATUS wreplsrv_scavenging_run(struct wreplsrv_service *service)
DEBUG(4,("wreplsrv_scavenging_run(): start\n"));
tmp_mem = talloc_new(service);
+ NT_STATUS_HAVE_NO_MEMORY(tmp_mem);
service->scavenging.processing = True;
status = wreplsrv_scavenging_owned_records(service,tmp_mem);
service->scavenging.processing = False;
@@ -505,6 +506,7 @@ NTSTATUS wreplsrv_scavenging_run(struct wreplsrv_service *service)
NT_STATUS_NOT_OK_RETURN(status);
tmp_mem = talloc_new(service);
+ NT_STATUS_HAVE_NO_MEMORY(tmp_mem);
service->scavenging.processing = True;
status = wreplsrv_scavenging_replica_non_active_records(service, tmp_mem);
service->scavenging.processing = False;
@@ -512,6 +514,7 @@ NTSTATUS wreplsrv_scavenging_run(struct wreplsrv_service *service)
NT_STATUS_NOT_OK_RETURN(status);
tmp_mem = talloc_new(service);
+ NT_STATUS_HAVE_NO_MEMORY(tmp_mem);
service->scavenging.processing = True;
status = wreplsrv_scavenging_replica_active_records(service, tmp_mem);
service->scavenging.processing = False;