Removed possible uninitialised pointer value
Removed possible uninitialised pointer value in host parsing for wildcard
This commit is contained in:
parent
502c78de2b
commit
761de0ac8a
@ -200,7 +200,7 @@ int add_mysql_users_with_host_ipv4(USERS *users, char *user, char *host, char *p
|
||||
tmp = ret_ip+strlen(ret_ip)-1;
|
||||
|
||||
/* start from Class C */
|
||||
while(*tmp) {
|
||||
while(tmp > ret_ip) {
|
||||
if (*tmp == '%') {
|
||||
/* set only the last IPv4 byte to 1
|
||||
* avoiding setipadress() failure
|
||||
|
Loading…
x
Reference in New Issue
Block a user