Fix for % detection

Fix for % detection
This commit is contained in:
MassimilianoPinto
2014-09-29 13:02:06 +02:00
parent 2268bf89aa
commit 42d0b3c743

View File

@ -344,8 +344,8 @@ getUsers(SERVICE *service, struct users *users)
strcpy(ret_ip, row[1]); strcpy(ret_ip, row[1]);
tmp = ret_ip+strlen(ret_ip); tmp = ret_ip+strlen(ret_ip);
while(tmp) { while(*tmp) {
if (tmp == '%') { if (*tmp == '%') {
/* set last byte only to 1 /* set last byte only to 1
* avoiding setipadress failure * avoiding setipadress failure
* for Class C address * for Class C address