svn commit: samba r16701 - branches/SAMBA_3_0/source/printing trunk/source/printing

jerry at samba.org jerry at samba.org
Thu Jun 29 22:37:35 GMT 2006


Author: jerry
Date: 2006-06-29 22:37:32 +0000 (Thu, 29 Jun 2006)
New Revision: 16701

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16701

Log:
Fix segv when adding a printer caused by not initializing the 
realm name in ads_init() in nt_printer_publish().


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-06-29 22:21:06 UTC (rev 16700)
+++ branches/SAMBA_3_0/source/printing/nt_printing.c	2006-06-29 22:37:32 UTC (rev 16701)
@@ -3184,7 +3184,7 @@
 		goto done;
 	}
 
-	ads = ads_init(NULL, NULL, NULL);
+	ads = ads_init(lp_realm(), lp_workgroup(), NULL);
 	if (!ads) {
 		DEBUG(3, ("ads_init() failed\n"));
 		win_rc = WERR_SERVER_UNAVAILABLE;

Modified: trunk/source/printing/nt_printing.c
===================================================================
--- trunk/source/printing/nt_printing.c	2006-06-29 22:21:06 UTC (rev 16700)
+++ trunk/source/printing/nt_printing.c	2006-06-29 22:37:32 UTC (rev 16701)
@@ -3187,7 +3187,7 @@
 		goto done;
 	}
 
-	ads = ads_init(NULL, NULL, NULL);
+	ads = ads_init(lp_realm(), lp_workgroup(), NULL);
 	if (!ads) {
 		DEBUG(3, ("ads_init() failed\n"));
 		win_rc = WERR_SERVER_UNAVAILABLE;



More information about the samba-cvs mailing list