s3-printing: very obvious fix for cups_pull_comment_location().
authorGünther Deschner <gd@samba.org>
Tue, 10 May 2011 13:48:25 +0000 (15:48 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jun 2011 10:57:43 +0000 (12:57 +0200)
This has been in there since 2008...

Guenther
(cherry picked from commit 3ba3f68e03510e3bb5b7627c200af0395e853bc2)
(cherry picked from commit 04e820ef17e5a9df90ff8b7744bf9cce5a00ae05)

source3/printing/print_cups.c

index 4c24e4465aef58fe7860613e0b641586564b7013..f06a797c4389128d1e71d7538d91cbe4190b920d 100644 (file)
@@ -1688,7 +1688,7 @@ bool cups_pull_comment_location(NT_PRINTER_INFO_LEVEL_2 *printer)
        } else {
                server = talloc_strdup(frame,cupsServer());
        }
-       if (server) {
+       if (!server) {
                goto out;
        }
        if (!push_utf8_talloc(frame, &sharename, printer->sharename, &size)) {