Skip to content

Commit

Permalink
They're indexes not references...
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Oct 2, 2014
1 parent 85e8e66 commit 7ffc1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/xlat.c
Expand Up @@ -1135,7 +1135,7 @@ static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, char *fmt, xlat_exp_t **
num = strtoul(p, &end, 10);
if (num > 1000) {
talloc_free(node);
*error = "Invalid array reference";
*error = "Invalid array index";
return - (p - fmt);
}
p = end;
Expand All @@ -1144,7 +1144,7 @@ static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, char *fmt, xlat_exp_t **

} else {
talloc_free(node);
*error = "Invalid array reference";
*error = "Invalid array index";
return - (p - fmt);
}

Expand Down

0 comments on commit 7ffc1bf

Please sign in to comment.