Author: jerry Date: 2006-01-13 03:10:50 +0000 (Fri, 13 Jan 2006) New Revision: 12889
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12889 Log: BUG 3380: fix crash when changing printer drivers caused by accessing a previously freed pointer Modified: branches/SAMBA_3_0/source/printing/nt_printing.c trunk/source/printing/nt_printing.c Changeset: Modified: branches/SAMBA_3_0/source/printing/nt_printing.c =================================================================== --- branches/SAMBA_3_0/source/printing/nt_printing.c 2006-01-13 03:06:46 UTC (rev 12888) +++ branches/SAMBA_3_0/source/printing/nt_printing.c 2006-01-13 03:10:50 UTC (rev 12889) @@ -3279,6 +3279,8 @@ TALLOC_FREE( data ); + p2->data = NULL; + DEBUG(8,("delete_all_printer_data: Removed all Printer Data from printer [%s]\n", p2->printername )); Modified: trunk/source/printing/nt_printing.c =================================================================== --- trunk/source/printing/nt_printing.c 2006-01-13 03:06:46 UTC (rev 12888) +++ trunk/source/printing/nt_printing.c 2006-01-13 03:10:50 UTC (rev 12889) @@ -3283,6 +3283,8 @@ TALLOC_FREE( data ); + p2->data = NULL; + DEBUG(8,("delete_all_printer_data: Removed all Printer Data from printer [%s]\n", p2->printername ));