1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r20983: Two no-mem error returns

(This used to be commit 79a0cd3a1b)
This commit is contained in:
Volker Lendecke 2007-01-23 20:57:50 +00:00 committed by Gerald (Jerry) Carter
parent 0602d4d7f2
commit a80732cf00

View File

@ -213,6 +213,7 @@ static NTSTATUS notify_save(struct notify_context *notify)
} }
tmp_ctx = talloc_new(notify); tmp_ctx = talloc_new(notify);
NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
status = ndr_push_struct_blob(&blob, tmp_ctx, notify->array, status = ndr_push_struct_blob(&blob, tmp_ctx, notify->array,
(ndr_push_flags_fn_t)ndr_push_notify_array); (ndr_push_flags_fn_t)ndr_push_notify_array);
@ -246,6 +247,10 @@ static void notify_handler(struct messaging_context *msg_ctx, void *private_data
TALLOC_CTX *tmp_ctx = talloc_new(notify); TALLOC_CTX *tmp_ctx = talloc_new(notify);
struct notify_list *listel; struct notify_list *listel;
if (tmp_ctx == NULL) {
return;
}
status = ndr_pull_struct_blob(data, tmp_ctx, &ev, status = ndr_pull_struct_blob(data, tmp_ctx, &ev,
(ndr_pull_flags_fn_t)ndr_pull_notify_event); (ndr_pull_flags_fn_t)ndr_pull_notify_event);
if (!NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {