From 42d0b3c743ebe61ef0ff19486a6a0eb2f7aa8012 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 29 Sep 2014 13:02:06 +0200 Subject: [PATCH] Fix for % detection Fix for % detection --- server/core/dbusers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/dbusers.c b/server/core/dbusers.c index 867a9c985..45251e4d6 100644 --- a/server/core/dbusers.c +++ b/server/core/dbusers.c @@ -344,8 +344,8 @@ getUsers(SERVICE *service, struct users *users) strcpy(ret_ip, row[1]); tmp = ret_ip+strlen(ret_ip); - while(tmp) { - if (tmp == '%') { + while(*tmp) { + if (*tmp == '%') { /* set last byte only to 1 * avoiding setipadress failure * for Class C address