From 9164ed6220225ed14e167ba2166ad2f9ef7ba629 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 3 Jan 2002 02:47:50 +0000 Subject: 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) --- source3/libsmb/cli_spoolss.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/libsmb') 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: -- cgit