]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
aklog-principal-rewrite-20050705
authorTroy Benjegerdes <hozer@hozed.org>
Tue, 5 Jul 2005 16:06:08 +0000 (16:06 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Jul 2005 16:06:08 +0000 (16:06 +0000)
fix second_comp call to be correct for macro

src/aklog/aklog_main.c

index 9fb800ac0cb85f72172c270f069638a81863b92e..9556589e1bc4d142ad1bfb042ceef5242cacf14c 100644 (file)
@@ -622,7 +622,7 @@ static int auth_to_cell(context, cell, realm)
            strncpy(username, get_princ_str(context, v5cred->client, 0), len);
            username[len] = '\0';
 
-           if (second_comp(context, v5cred->client) > 1) {
+           if (second_comp(context, v5cred->client)) {
                strcat(username, ".");
                p = username + strlen(username);
                len = min(get_princ_len(context, v5cred->client, 1),