summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-10 15:48:25 +0200
committerKarolin Seeger <kseeger@samba.org>2011-06-14 12:57:43 +0200
commit4a2f4c83f5312b4db7f6205712d4f922c1df753e (patch)
tree3e0f368851375409a425ef36e8a9b96069c4edc4
parentd56f76ff59259aa6616ff875b39426197df39138 (diff)
downloadsamba-4a2f4c83f5312b4db7f6205712d4f922c1df753e.tar.gz
s3-printing: very obvious fix for cups_pull_comment_location().
This has been in there since 2008... Guenther (cherry picked from commit 3ba3f68e03510e3bb5b7627c200af0395e853bc2) (cherry picked from commit 04e820ef17e5a9df90ff8b7744bf9cce5a00ae05)
-rw-r--r--source3/printing/print_cups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 4c24e4465ae..f06a797c438 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -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)) {