user-auth-cell-20040720
authorJeffrey Altman <jaltman@mit.edu>
Tue, 20 Jul 2004 16:51:07 +0000 (16:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 20 Jul 2004 16:51:07 +0000 (16:51 +0000)
remember to return the authentication cell name if found

src/WINNT/client_creds/creds.cpp

index f8b58ae..ff568ca 100644 (file)
@@ -459,11 +459,12 @@ int GetDefaultCell (LPTSTR pszCell)
         }
 
         if (szCellA[0] == '\0') {
-            if ((rc = cm_GetRootCellName (szCellA)) == 0)
-                CopyAnsiToString (pszCell, szCellA);
+            rc = cm_GetRootCellName (szCellA);
         } else {
             rc = 0;
         }
+               if (rc == 0)
+                       CopyAnsiToString(pszCell, szCellA);
     }
     return rc;
 }