get wildcard loop tidy up

get wildcard loop tidy up
This commit is contained in:
MassimilianoPinto 2014-10-16 18:11:29 +02:00
parent a437d089bb
commit a82d18f517

View File

@ -223,7 +223,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