svn commit: samba r20983 - in
branches/SAMBA_4_0/source/ntvfs/common: .
vlendec at samba.org
vlendec at samba.org
Tue Jan 23 20:57:50 GMT 2007
Author: vlendec
Date: 2007-01-23 20:57:50 +0000 (Tue, 23 Jan 2007)
New Revision: 20983
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20983
Log:
Two no-mem error returns
Modified:
branches/SAMBA_4_0/source/ntvfs/common/notify.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/notify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/notify.c 2007-01-23 20:38:14 UTC (rev 20982)
+++ branches/SAMBA_4_0/source/ntvfs/common/notify.c 2007-01-23 20:57:50 UTC (rev 20983)
@@ -213,6 +213,7 @@
}
tmp_ctx = talloc_new(notify);
+ NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
status = ndr_push_struct_blob(&blob, tmp_ctx, notify->array,
(ndr_push_flags_fn_t)ndr_push_notify_array);
@@ -246,6 +247,10 @@
TALLOC_CTX *tmp_ctx = talloc_new(notify);
struct notify_list *listel;
+ if (tmp_ctx == NULL) {
+ return;
+ }
+
status = ndr_pull_struct_blob(data, tmp_ctx, &ev,
(ndr_pull_flags_fn_t)ndr_pull_notify_event);
if (!NT_STATUS_IS_OK(status)) {
More information about the samba-cvs
mailing list