Module: kamailio Branch: master Commit: 768dc8b566e2af04411570ef7b4d55a210a1927d URL: https://github.com/kamailio/kamailio/commit/768dc8b566e2af04411570ef7b4d55a210a1927d
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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/768dc8b566e2af04411570ef7b4d55a210a1927d.diff Patch: https://github.com/kamailio/kamailio/commit/768dc8b566e2af04411570ef7b4d55a210a1927d.patch --- 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; _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
