summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index b4347dd2..1806ac49 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -292,7 +292,7 @@ ip_masklen (struct in_addr netmask)
pnt = (u_char *) &netmask;
end = pnt + 4;
- while ((*pnt == 0xff) && pnt < end)
+ while ((pnt < end) && (*pnt == 0xff))
{
len+= 8;
pnt++;