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

r3631: a couple of tweaks to the talloc hierarchy for async requests in

pvfs. This prevents a possible crash due to free ordering on
unexpected disconnect.
(This used to be commit bfca9eb7cb)
This commit is contained in:
Andrew Tridgell 2004-11-09 02:12:57 +00:00 committed by Gerald (Jerry) Carter
parent 0639758dd9
commit 47b91c97cd
2 changed files with 3 additions and 1 deletions

View File

@ -669,6 +669,8 @@ static NTSTATUS pvfs_open_setup_retry(struct ntvfs_module_context *ntvfs,
return NT_STATUS_NO_MEMORY;
}
talloc_steal(pvfs, r);
return NT_STATUS_OK;
}

View File

@ -127,7 +127,7 @@ static int pvfs_wait_destructor(void *ptr)
struct timed_event te;
struct pvfs_wait *pwait;
pwait = talloc_p(req, struct pvfs_wait);
pwait = talloc_p(pvfs, struct pvfs_wait);
if (pwait == NULL) {
return NULL;
}