Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 13, 2017
1 parent dcf6779 commit 37e9e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions 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 @@ -429,7 +429,7 @@ static rlm_rcode_t mod_map_proc(void *mod_inst, UNUSED void *proc_inst, REQUEST
* Note: Not all SQL client libraries provide a row count,
* so we have to do the count here.
*/
while (((ret == rlm_sql_fetch_row(&row, inst, request, &handle)) == RLM_SQL_OK)) {
while (((ret = rlm_sql_fetch_row(&row, inst, request, &handle)) == RLM_SQL_OK)) {
rows++;
for (map = maps, j = 0;
map && (j < MAX_SQL_FIELD_INDEX);
Expand Down
4 changes: 4 additions & 0 deletions src/modules/rlm_sql/sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ sql_rcode_t rlm_sql_fetch_row(rlm_sql_row_t *out, rlm_sql_t const *inst, REQUEST
ret = (inst->driver->sql_fetch_row)(out, *handle, inst->config);
switch (ret) {
case RLM_SQL_OK:
rad_assert(*out != NULL);
return ret;

case RLM_SQL_NO_MORE_ROWS:
rad_assert(*out == NULL);
return ret;

default:
Expand Down

0 comments on commit 37e9e40

Please sign in to comment.