summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-07-25 22:35:57 +0000
committerJeremy Allison <jra@samba.org>2000-07-25 22:35:57 +0000
commitbc22ae0b47bddd919b07e4c81ae12243c1f3226a (patch)
tree78027928f28d6ef081b2fb83836c028cc86b4ba7 /source3/smbd/lanman.c
parent904a24a0129b9d9c7492b7eaadbb1fb3e076eac5 (diff)
downloadsamba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.tar.gz
samba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.tar.bz2
samba-bc22ae0b47bddd919b07e4c81ae12243c1f3226a.zip
Fixed up error checking and move printer file code. Fixed a memory leak.
Jeremy. (This used to be commit 5130dd0f8b80aed5fb3c0df290b627057cc9b825)
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r--source3/smbd/lanman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 078e3385dc..6cb63f18f7 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -508,7 +508,7 @@ static void fill_printq_info_52(connection_struct *conn, int snum, int uLevel,
* the existing fileset. JRA.
*/
- if ( ok = get_a_printer_driver_9x_compatible(gen_line, lp_printerdriver(snum)) ) {
+ if ((ok = get_a_printer_driver_9x_compatible(gen_line, lp_printerdriver(snum)) ) == True) {
p = gen_line;
DEBUG(10,("9x compatable driver line for [%s]: [%s]\n", lp_printerdriver(snum), gen_line));
} else {
@@ -725,7 +725,7 @@ static int get_printerdrivernumber(int snum)
if( !ok ) {
/* no printers.def, or driver not found, check the NT driver tdb */
- if ( ok = get_a_printer_driver_9x_compatible(gen_line, lp_printerdriver(snum)) ) {
+ if ((ok = get_a_printer_driver_9x_compatible(gen_line, lp_printerdriver(snum)))==True ) {
p = gen_line;
DEBUG(10,("9x compatable driver line for [%s]: [%s]\n",
lp_printerdriver(snum), gen_line));