Module: kamailio
Branch: master
Commit: a72abf8b1db2ecd8fabfd3e051d1bd61fd205a07
URL:
https://github.com/kamailio/kamailio/commit/a72abf8b1db2ecd8fabfd3e051d1bd6…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2017-08-03T10:28:28+03:00
p_usrloc: fix out-of-bounds read
---
Modified: src/modules/p_usrloc/udomain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a72abf8b1db2ecd8fabfd3e051d1bd6…
Patch:
https://github.com/kamailio/kamailio/commit/a72abf8b1db2ecd8fabfd3e051d1bd6…
---
diff --git a/src/modules/p_usrloc/udomain.c b/src/modules/p_usrloc/udomain.c
index 11f0a131d6..227c0c4696 100644
--- a/src/modules/p_usrloc/udomain.c
+++ b/src/modules/p_usrloc/udomain.c
@@ -508,7 +508,7 @@ urecord_t* db_load_urecord_by_ruid(udomain_t* _d, str *_ruid)
else
order = &q_col;
- if (ul_db_layer_query(_d, &vals[0].val.str_val, &vals[1].val.str_val, keys, 0,
vals, columns, 1, 18, order,
+ if (ul_db_layer_query(_d, &vals[0].val.str_val, NULL, keys, 0, vals, columns, 1,
18, order,
&res) < 0) {
LM_ERR("db_query failed\n");
return 0;