From 51c86c8e67c3b026f49136f5b6743c279cc206d2 Mon Sep 17 00:00:00 2001 From: Henry Wong Date: Fri, 4 Nov 2011 11:20:10 -0700 Subject: 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 Autobuild-Date: Fri Nov 4 21:12:13 CET 2011 on sn-devel-104 --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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; } } -- cgit