]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/auth.c
Merge changes from CUPS 1.4svn-r8346.
[thirdparty/cups.git] / scheduler / auth.c
index b3b93d34fbd26c12c68a236a0349ad44871fb751..cc2f9a412acedc8585e933294255a49aaf4ab605 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   Authorization routines for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 2007-2008 by Apple Inc.
+ *   Copyright 2007-2009 by Apple Inc.
  *   Copyright 1997-2007 by Easy Software Products, all rights reserved.
  *
  *   This file contains Kerberos support code, copyright 2006 by
@@ -456,9 +456,8 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
 
     strlcpy(username, "_AUTHREF_", sizeof(username));
 
-    if ((status = AuthorizationCopyInfo(con->authref, 
-                                       kAuthorizationEnvironmentUsername, 
-                                       &authinfo)) == 0)
+    if (!AuthorizationCopyInfo(con->authref, kAuthorizationEnvironmentUsername, 
+                              &authinfo))
     {
       if (authinfo->count == 1 && authinfo->items[0].value &&
           authinfo->items[0].valueLength >= 2)