summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-01-13 03:10:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:06 -0500
commitdbac6701664d3d08495469c734dc47bca649da68 (patch)
tree1c55aba9445a9ce38ac3d9355ff2baf601a4c23d
parentd86ebaf198f54b0dc18ea607d0ee9803fcbc4f0f (diff)
downloadsamba-dbac6701664d3d08495469c734dc47bca649da68.tar.gz
samba-dbac6701664d3d08495469c734dc47bca649da68.tar.bz2
samba-dbac6701664d3d08495469c734dc47bca649da68.zip
r12889: BUG 3380: fix crash when changing printer drivers caused by accessing a previously freed pointer
(This used to be commit bcce3b69f83f52deb308d8c2f5165000468bd552)
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 09775e60c8..3649da1ac0 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -3279,6 +3279,8 @@ WERROR delete_all_printer_data( NT_PRINTER_INFO_LEVEL_2 *p2, const char *key )
TALLOC_FREE( data );
+ p2->data = NULL;
+
DEBUG(8,("delete_all_printer_data: Removed all Printer Data from printer [%s]\n",
p2->printername ));