svn commit: samba r3635 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Tue Nov 9 10:50:14 GMT 2004


Author: tridge
Date: 2004-11-09 10:50:13 +0000 (Tue, 09 Nov 2004)
New Revision: 3635

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3635

Log:
fixed the crash from the BASE-DISCONNECT test


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c	2004-11-09 09:35:45 UTC (rev 3634)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c	2004-11-09 10:50:13 UTC (rev 3635)
@@ -188,6 +188,7 @@
 				if (pending->wait_handle == NULL) {
 					pvfs_lock_async_failed(pvfs, req, f, locks, i, NT_STATUS_NO_MEMORY);
 				} else {
+					talloc_steal(pending, pending->wait_handle);
 					DLIST_ADD(f->pending_list, pending);
 				}
 				return;
@@ -224,7 +225,6 @@
 	for (p=f->pending_list;p;p=next) {
 		next = p->next;
 		DLIST_REMOVE(f->pending_list, p);
-		talloc_free(p->wait_handle);
 		p->req->async_states->status = NT_STATUS_RANGE_NOT_LOCKED;
 		p->req->async_states->send_fn(p->req);
 	}
@@ -374,6 +374,7 @@
 				if (pending->wait_handle == NULL) {
 					return NT_STATUS_NO_MEMORY;
 				}
+				talloc_steal(pending, pending->wait_handle);
 				DLIST_ADD(f->pending_list, pending);
 				return NT_STATUS_OK;
 			}



More information about the samba-cvs mailing list