Initialise result on success in cli_spoolss_enum_printers() so we don't get
authorTim Potter <tpot@samba.org>
Thu, 3 Jan 2002 02:47:50 +0000 (02:47 +0000)
committerTim Potter <tpot@samba.org>
Thu, 3 Jan 2002 02:47:50 +0000 (02:47 +0000)
stuck in an infinite loop.
(This used to be commit fe1fb6589a0a4b4cff7a0ee0267f6e09e10e2a85)

source3/libsmb/cli_spoolss.c

index 6b1a5ff249e94ccaedb23c40dc2dfa658c1935a6..e6a6bf52587f815eb5574b209ca5405d22dc2a73 100644 (file)
@@ -439,6 +439,8 @@ NTSTATUS cli_spoolss_enum_printers(
                        goto done;
                }
 
+               result = NT_STATUS_OK;
+
                if ((*returned = r.returned)) {
                        switch (level) {
                        case 1: