Don't reject a successful alloc :-(.
authorJeremy Allison <jra@samba.org>
Thu, 2 Oct 2008 19:21:11 +0000 (12:21 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 2 Oct 2008 19:21:11 +0000 (12:21 -0700)
Jeremy.

source3/printing/print_cups.c

index b46d83bb019f80a1641779e761adcf831a2d7fe2..b9bed7a138c7d1eebd8a5313dd59b06b009fe0ea 100644 (file)
@@ -71,7 +71,7 @@ static http_t *cups_connect(TALLOC_CTX *frame)
        } else {
                server = talloc_strdup(frame,cupsServer());
        }
-       if (server) {
+       if (!server) {
                return NULL;
        }