Module: kamailio
Branch: master
Commit: 768dc8b566e2af04411570ef7b4d55a210a1927d
URL:
https://github.com/kamailio/kamailio/commit/768dc8b566e2af04411570ef7b4d55a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-03-18T18:36:37+01:00
sqlops: fix column index for sqlops_is_null()
- report and patch by Mihaly Zachar
---
Modified: modules/sqlops/sql_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/768dc8b566e2af04411570ef7b4d55a…
Patch:
https://github.com/kamailio/kamailio/commit/768dc8b566e2af04411570ef7b4d55a…
---
diff --git a/modules/sqlops/sql_api.c b/modules/sqlops/sql_api.c
index 4b19f33..cf0efee 100644
--- a/modules/sqlops/sql_api.c
+++ b/modules/sqlops/sql_api.c
@@ -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;