diff --git a/src/aklog/aklog_main.c b/src/aklog/aklog_main.c index 9fb800ac0c..9556589e1b 100644 --- a/src/aklog/aklog_main.c +++ b/src/aklog/aklog_main.c @@ -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),