Fixes to Coverity erros 75748 and 76132.
This commit is contained in:
parent
97934ed96a
commit
9cb2be9605
@ -57,7 +57,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
fgets(readbuff,4092,infile);
|
||||
psize = strlen(readbuff);
|
||||
if(psize < 0 || psize > 4092){
|
||||
if(psize > 4092){
|
||||
continue;
|
||||
}
|
||||
qbuff = gwbuf_alloc(psize + 7);
|
||||
|
@ -1393,11 +1393,11 @@ SERVER *server;
|
||||
user,
|
||||
auth);
|
||||
if (enable_root_user)
|
||||
serviceEnableRootUser(service, atoi(enable_root_user));
|
||||
serviceEnableRootUser(obj->element, atoi(enable_root_user));
|
||||
|
||||
if (allow_localhost_match_wildcard_host && service)
|
||||
if (allow_localhost_match_wildcard_host)
|
||||
serviceEnableLocalhostMatchWildcardHost(
|
||||
service,
|
||||
obj->element,
|
||||
atoi(allow_localhost_match_wildcard_host));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user