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

(cherry picked from commit 768dc8b)
  • Loading branch information
miconda committed Mar 18, 2015
1 parent df86f2a commit 6614c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sqlops/sql_api.c
Expand Up @@ -763,7 +763,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 6614c8e

Please sign in to comment.