From cb6795bea659e884e23173960e68a2f970fc5dd3 Mon Sep 17 00:00:00 2001 From: Henry Wong Date: Fri, 4 Nov 2011 11:20:10 -0700 Subject: [PATCH] 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 (cherry picked from commit 51c86c8e67c3b026f49136f5b6743c279cc206d2) --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index c886f34d039..bfec3cc183a 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -295,6 +295,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; } } -- 2.11.4.GIT