From 1a3d29267ba5a086c38182775b5b1efd73a892f6 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Fri, 24 Apr 2015 08:01:40 +0000 Subject: [PATCH] too short str length for ULA, thanks to chinese partners git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7263 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/OPENAIRHSS/db/db_connector.c | 14 +++++++------- openair-cn/OPENAIRHSS/db/db_epc_equipment.c | 4 ++-- openair-cn/OPENAIRHSS/db/db_subscription_data.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openair-cn/OPENAIRHSS/db/db_connector.c b/openair-cn/OPENAIRHSS/db/db_connector.c index 9fce42143e..7e5fada9c7 100644 --- a/openair-cn/OPENAIRHSS/db/db_connector.c +++ b/openair-cn/OPENAIRHSS/db/db_connector.c @@ -116,7 +116,7 @@ int hss_mysql_update_loc(const char *imsi, mysql_ul_ans_t *mysql_ul_ans) { MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; int ret = 0; if ((db_desc->db_conn == NULL) || (mysql_ul_ans == NULL)) { @@ -184,7 +184,7 @@ int hss_mysql_purge_ue(mysql_pu_req_t *mysql_pu_req, { MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; int ret = 0; if ((db_desc->db_conn == NULL) || @@ -243,7 +243,7 @@ int hss_mysql_get_user(const char *imsi) { MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; if (db_desc->db_conn == NULL) { return EINVAL; @@ -282,7 +282,7 @@ int hss_mysql_get_user(const char *imsi) int mysql_push_up_loc(mysql_ul_push_t *ul_push_p) { MYSQL_RES *res; - char query[500]; + char query[1000]; int query_length = 0; int status; @@ -378,7 +378,7 @@ int hss_mysql_push_rand_sqn(const char *imsi, uint8_t *rand_p, uint8_t *sqn) { int status = 0, i; MYSQL_RES *res; - char query[255]; + char query[1000]; int query_length = 0; uint64_t sqn_decimal = 0; @@ -449,7 +449,7 @@ int hss_mysql_increment_sqn(const char *imsi) { int status; MYSQL_RES *res; - char query[255]; + char query[1000]; if (db_desc->db_conn == NULL) { return EINVAL; @@ -509,7 +509,7 @@ int hss_mysql_auth_info(mysql_auth_info_req_t *auth_info_req, int ret = 0; MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; if (db_desc->db_conn == NULL) { return EINVAL; diff --git a/openair-cn/OPENAIRHSS/db/db_epc_equipment.c b/openair-cn/OPENAIRHSS/db/db_epc_equipment.c index bf83737109..8b6c430e7c 100644 --- a/openair-cn/OPENAIRHSS/db/db_epc_equipment.c +++ b/openair-cn/OPENAIRHSS/db/db_epc_equipment.c @@ -45,7 +45,7 @@ int hss_mysql_query_mmeidentity(const int id_mme_identity, { MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) { return EINVAL; @@ -99,7 +99,7 @@ int hss_mysql_check_epc_equipment(mysql_mme_identity_t *mme_identity_p) { MYSQL_RES *res; MYSQL_ROW row; - char query[255]; + char query[1000]; if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) { return EINVAL; diff --git a/openair-cn/OPENAIRHSS/db/db_subscription_data.c b/openair-cn/OPENAIRHSS/db/db_subscription_data.c index 005f18e88a..dc06a011a8 100644 --- a/openair-cn/OPENAIRHSS/db/db_subscription_data.c +++ b/openair-cn/OPENAIRHSS/db/db_subscription_data.c @@ -46,7 +46,7 @@ int hss_mysql_query_pdns(const char *imsi, int ret; MYSQL_RES *res = NULL; MYSQL_ROW row; - char query[255]; + char query[1000]; mysql_pdn_t *pdn_array = NULL; if (db_desc->db_conn == NULL) { -- GitLab