Commit 1a3d2926 authored by gauthier's avatar gauthier
Browse files

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
parent e2a6dbc5
...@@ -116,7 +116,7 @@ int hss_mysql_update_loc(const char *imsi, mysql_ul_ans_t *mysql_ul_ans) ...@@ -116,7 +116,7 @@ int hss_mysql_update_loc(const char *imsi, mysql_ul_ans_t *mysql_ul_ans)
{ {
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
int ret = 0; int ret = 0;
if ((db_desc->db_conn == NULL) || (mysql_ul_ans == NULL)) { 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, ...@@ -184,7 +184,7 @@ int hss_mysql_purge_ue(mysql_pu_req_t *mysql_pu_req,
{ {
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
int ret = 0; int ret = 0;
if ((db_desc->db_conn == NULL) || if ((db_desc->db_conn == NULL) ||
...@@ -243,7 +243,7 @@ int hss_mysql_get_user(const char *imsi) ...@@ -243,7 +243,7 @@ int hss_mysql_get_user(const char *imsi)
{ {
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
if (db_desc->db_conn == NULL) { if (db_desc->db_conn == NULL) {
return EINVAL; return EINVAL;
...@@ -282,7 +282,7 @@ int hss_mysql_get_user(const char *imsi) ...@@ -282,7 +282,7 @@ int hss_mysql_get_user(const char *imsi)
int mysql_push_up_loc(mysql_ul_push_t *ul_push_p) int mysql_push_up_loc(mysql_ul_push_t *ul_push_p)
{ {
MYSQL_RES *res; MYSQL_RES *res;
char query[500]; char query[1000];
int query_length = 0; int query_length = 0;
int status; int status;
...@@ -378,7 +378,7 @@ int hss_mysql_push_rand_sqn(const char *imsi, uint8_t *rand_p, uint8_t *sqn) ...@@ -378,7 +378,7 @@ int hss_mysql_push_rand_sqn(const char *imsi, uint8_t *rand_p, uint8_t *sqn)
{ {
int status = 0, i; int status = 0, i;
MYSQL_RES *res; MYSQL_RES *res;
char query[255]; char query[1000];
int query_length = 0; int query_length = 0;
uint64_t sqn_decimal = 0; uint64_t sqn_decimal = 0;
...@@ -449,7 +449,7 @@ int hss_mysql_increment_sqn(const char *imsi) ...@@ -449,7 +449,7 @@ int hss_mysql_increment_sqn(const char *imsi)
{ {
int status; int status;
MYSQL_RES *res; MYSQL_RES *res;
char query[255]; char query[1000];
if (db_desc->db_conn == NULL) { if (db_desc->db_conn == NULL) {
return EINVAL; return EINVAL;
...@@ -509,7 +509,7 @@ int hss_mysql_auth_info(mysql_auth_info_req_t *auth_info_req, ...@@ -509,7 +509,7 @@ int hss_mysql_auth_info(mysql_auth_info_req_t *auth_info_req,
int ret = 0; int ret = 0;
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
if (db_desc->db_conn == NULL) { if (db_desc->db_conn == NULL) {
return EINVAL; return EINVAL;
......
...@@ -45,7 +45,7 @@ int hss_mysql_query_mmeidentity(const int id_mme_identity, ...@@ -45,7 +45,7 @@ int hss_mysql_query_mmeidentity(const int id_mme_identity,
{ {
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) { if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) {
return EINVAL; return EINVAL;
...@@ -99,7 +99,7 @@ int hss_mysql_check_epc_equipment(mysql_mme_identity_t *mme_identity_p) ...@@ -99,7 +99,7 @@ int hss_mysql_check_epc_equipment(mysql_mme_identity_t *mme_identity_p)
{ {
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) { if ((db_desc->db_conn == NULL) || (mme_identity_p == NULL)) {
return EINVAL; return EINVAL;
......
...@@ -46,7 +46,7 @@ int hss_mysql_query_pdns(const char *imsi, ...@@ -46,7 +46,7 @@ int hss_mysql_query_pdns(const char *imsi,
int ret; int ret;
MYSQL_RES *res = NULL; MYSQL_RES *res = NULL;
MYSQL_ROW row; MYSQL_ROW row;
char query[255]; char query[1000];
mysql_pdn_t *pdn_array = NULL; mysql_pdn_t *pdn_array = NULL;
if (db_desc->db_conn == NULL) { if (db_desc->db_conn == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment