Skip to content

Commit

Permalink
Make field name comparisons case insensitive for SQL maps
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Oct 11, 2024
1 parent 4d8673e commit fe0e4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_sql/rlm_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ static unlang_action_t mod_map_resume(rlm_rcode_t *p_result, UNUSED int *priorit
}

for (j = 0; j < field_cnt; j++) {
if (strcmp(fields[j], map_rhs) != 0) continue;
if (strcasecmp(fields[j], map_rhs) != 0) continue;
field_index[i] = j;
found_field = true;
}
Expand Down

0 comments on commit fe0e4d3

Please sign in to comment.