Skip to content

Commit

Permalink
sqlops: fix column index for sqlops_is_null()
Browse files Browse the repository at this point in the history
- report and patch by Mihaly Zachar
  • Loading branch information
miconda committed Mar 18, 2015
1 parent ab42711 commit 768dc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sqlops/sql_api.c
Expand Up @@ -761,7 +761,7 @@ int sqlops_is_null(str *sres, int i, int j)
LM_ERR("row index out of bounds [%d/%d]\n", i, res->nrows);
goto error;
}
if(i>=res->ncols)
if(j>=res->ncols)
{
LM_ERR("column index out of bounds [%d/%d]\n", j, res->ncols);
goto error;
Expand Down

0 comments on commit 768dc8b

Please sign in to comment.