From 0dca8f3e23c88815f477b60734590e7e64a6a5eb 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 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 c886f34..bfec3cc 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; } } -- 1.7.3.1