summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHenry Wong <henry@stuffedcow.net>2011-11-04 11:20:10 -0700
committerJeremy Allison <jra@samba.org>2011-11-04 21:12:13 +0100
commit51c86c8e67c3b026f49136f5b6743c279cc206d2 (patch)
tree78f47d0ec7d3d04a964ed6461d20deb1c6352cf0 /source3
parent9cf97175c7a8eb25e7052e898fd94c98eaa0e2cf (diff)
downloadsamba-51c86c8e67c3b026f49136f5b6743c279cc206d2.tar.gz
samba-51c86c8e67c3b026f49136f5b6743c279cc206d2.tar.bz2
samba-51c86c8e67c3b026f49136f5b6743c279cc206d2.zip
Properly fix bug #8384 - Windows XP clients seem to crash smbd process every once in a while.
Ensure we correctly null out the referenced pointer when we decrease the ref. count. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Nov 4 21:12:13 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 3405566ed7..1a9111c8a5 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -288,6 +288,7 @@ static void srv_spoolss_replycloseprinter(int snum,
if (prn_hnd->notify.cli_chan) {
prn_hnd->notify.cli_chan->active_connections--;
+ prn_hnd->notify.cli_chan = NULL;
}
}