Fixed coverity defects.
This commit is contained in:
@ -1355,13 +1355,14 @@ createInstance(char **options, FILTER_PARAMETER **params)
|
|||||||
free(filename);
|
free(filename);
|
||||||
|
|
||||||
/**Apply the rules to users*/
|
/**Apply the rules to users*/
|
||||||
|
ptr = my_instance->userstrings;
|
||||||
|
|
||||||
if(ptr == NULL)
|
if(ptr == NULL)
|
||||||
{
|
{
|
||||||
skygw_log_write(LOGFILE_ERROR,"dbfwfilter: No 'users' line found.");
|
skygw_log_write(LOGFILE_ERROR,"dbfwfilter: No 'users' line found.");
|
||||||
err = true;
|
err = true;
|
||||||
goto retblock;
|
goto retblock;
|
||||||
}
|
}
|
||||||
ptr = my_instance->userstrings;
|
|
||||||
|
|
||||||
while(ptr){
|
while(ptr){
|
||||||
|
|
||||||
|
|||||||
@ -4167,7 +4167,7 @@ static bool change_current_db(
|
|||||||
goto reply_error;
|
goto reply_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(rses->rses_mysql_session->db,tok);
|
strncpy(rses->rses_mysql_session->db,tok,MYSQL_DATABASE_MAXLEN);
|
||||||
free(query);
|
free(query);
|
||||||
query = NULL;
|
query = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user