summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-29 20:29:43 +0000
committerJeremy Allison <jra@samba.org>2001-12-29 20:29:43 +0000
commit7ce2d1fe37d2be26c407f3dc9427851d00ca216a (patch)
tree573cdf7c99321ea1fdf13f18c869b66e297f48ce /source/printing
parentd57c43fd05d8759f09c8c460baeb513a8ed41479 (diff)
downloadsamba-7ce2d1fe37d2be26c407f3dc9427851d00ca216a.tar.gz
samba-7ce2d1fe37d2be26c407f3dc9427851d00ca216a.tar.xz
samba-7ce2d1fe37d2be26c407f3dc9427851d00ca216a.zip
Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion(). Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index c2cd1d6eeb5..b2e7a096e9d 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -935,9 +935,12 @@ static uint32 get_correct_cversion(fstring architecture, fstring driverpath_in,
ZERO_STRUCT(st);
+ *perr = WERR_INVALID_PARAM;
+
/* If architecture is Windows 95/98/ME, the version is always 0. */
if (strcmp(architecture, "WIN40") == 0) {
DEBUG(10,("get_correct_cversion: Driver is Win9x, cversion = 0\n"));
+ *perr = WERR_OK;
return 0;
}
@@ -1018,6 +1021,7 @@ static uint32 get_correct_cversion(fstring architecture, fstring driverpath_in,
close_file(fsp, True);
close_cnum(conn, user->vuid);
unbecome_user();
+ *perr = WERR_OK;
return cversion;
error_exit: