Properly fix bug #8384 - Windows XP clients seem to crash smbd process every once...
authorHenry Wong <henry@stuffedcow.net>
Fri, 4 Nov 2011 18:20:10 +0000 (11:20 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Nov 2011 18:42:48 +0000 (19:42 +0100)
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
(cherry picked from commit 51c86c8e67c3b026f49136f5b6743c279cc206d2)

source3/rpc_server/spoolss/srv_spoolss_nt.c

index c886f34d03980de7e1d086ad7e13fdb2ae457d4a..bfec3cc183a8f90b31ea86d0a348d922f6d4279c 100644 (file)
@@ -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;
        }
 }