From: Jeffrey Altman Date: Tue, 20 Jul 2004 16:51:07 +0000 (+0000) Subject: user-auth-cell-20040720 X-Git-Tag: openafs-devel-1_3_66~30 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=3ed447174447e7d423f28dddb9244a2465ed28b4 user-auth-cell-20040720 remember to return the authentication cell name if found --- diff --git a/src/WINNT/client_creds/creds.cpp b/src/WINNT/client_creds/creds.cpp index f8b58ae..ff568ca 100644 --- a/src/WINNT/client_creds/creds.cpp +++ b/src/WINNT/client_creds/creds.cpp @@ -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; }