summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-03 02:47:50 +0000
committerTim Potter <tpot@samba.org>2002-01-03 02:47:50 +0000
commit9164ed6220225ed14e167ba2166ad2f9ef7ba629 (patch)
treed6986bd9e5e2fd83db60bb754c83a184a1afa524 /source3
parent71c04c5f9fd00a5ed130d361797301fda037edb6 (diff)
downloadsamba-9164ed6220225ed14e167ba2166ad2f9ef7ba629.tar.gz
samba-9164ed6220225ed14e167ba2166ad2f9ef7ba629.tar.bz2
samba-9164ed6220225ed14e167ba2166ad2f9ef7ba629.zip
Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop. (This used to be commit fe1fb6589a0a4b4cff7a0ee0267f6e09e10e2a85)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cli_spoolss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/cli_spoolss.c b/source3/libsmb/cli_spoolss.c
index 6b1a5ff249..e6a6bf5258 100644
--- a/source3/libsmb/cli_spoolss.c
+++ b/source3/libsmb/cli_spoolss.c
@@ -439,6 +439,8 @@ NTSTATUS cli_spoolss_enum_printers(
goto done;
}
+ result = NT_STATUS_OK;
+
if ((*returned = r.returned)) {
switch (level) {
case 1: