diff options
author | Jeremy Allison <jra@samba.org> | 2011-10-25 15:31:48 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-10-26 02:42:35 +0200 |
commit | 0f746fcad83350afe3168036cb084b86cd286e85 (patch) | |
tree | de503f88b0f334f684d0b21dd55e64ca0d872189 /source3/rpc_server | |
parent | 414df4b9c4595e90aa65425817f49b47718528fb (diff) | |
download | samba-0f746fcad83350afe3168036cb084b86cd286e85.tar.gz samba-0f746fcad83350afe3168036cb084b86cd286e85.tar.bz2 samba-0f746fcad83350afe3168036cb084b86cd286e85.zip |
Second attempt to fix bug #8384 - Windows XP clients seem to crash smbd process every once in a while.
Don't just use the first entry in back_channels as a talloc context
to allocate a long-lived chan entry on - must be NULL. It's already
correctly deleted when the last reference goes away.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 26 02:42:35 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 2efd8823cf..3405566ed7 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2613,7 +2613,7 @@ static bool srv_spoolss_replyopenprinter(int snum, const char *printer, /* the +2 is to strip the leading 2 backslashs */ fstrcpy(unix_printer, printer + 2); - chan = talloc_zero(back_channels, struct notify_back_channel); + chan = talloc_zero(NULL, struct notify_back_channel); if (!chan) { return false; } |