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