git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fd8e75d
)
user-auth-cell-20040720
author
Jeffrey Altman
<jaltman@mit.edu>
Tue, 20 Jul 2004 16:51:07 +0000 (16:51 +0000)
committer
Jeffrey 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
patch
|
blob
|
history
diff --git
a/src/WINNT/client_creds/creds.cpp
b/src/WINNT/client_creds/creds.cpp
index
f8b58ae
..
ff568ca
100644
(file)
--- 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;
}