Removed possible uninitialised pointer value

Removed possible uninitialised pointer value in host parsing for
wildcard
This commit is contained in:
MassimilianoPinto 2014-10-21 17:51:11 +02:00
parent 502c78de2b
commit 761de0ac8a

View File

@ -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