mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
STABLE14-aklog-principal-rewrite-20050705
fix second_comp call to be correct for macro (cherry picked from commit 391566e0b4173a3342b493048e152d9d1b7e0eb1)
This commit is contained in:
parent
cebcaeff11
commit
3e8d0dab61
@ -622,7 +622,7 @@ static int auth_to_cell(context, cell, realm)
|
|||||||
strncpy(username, get_princ_str(context, v5cred->client, 0), len);
|
strncpy(username, get_princ_str(context, v5cred->client, 0), len);
|
||||||
username[len] = '\0';
|
username[len] = '\0';
|
||||||
|
|
||||||
if (second_comp(context, v5cred->client) > 1) {
|
if (second_comp(context, v5cred->client)) {
|
||||||
strcat(username, ".");
|
strcat(username, ".");
|
||||||
p = username + strlen(username);
|
p = username + strlen(username);
|
||||||
len = min(get_princ_len(context, v5cred->client, 1),
|
len = min(get_princ_len(context, v5cred->client, 1),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user