mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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:
parent
0639758dd9
commit
47b91c97cd
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user