* prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is
in range before dereferencing it.
[backport candidate]
+2005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is
+ in range before dereferencing it.
+
2005-06-24 Pawel Worach <pawel.worach@gmail.com>
* getopt.h: add further tests for full getopt declaration on
pnt = (u_char *) &netmask;
end = pnt + 4;
- while ((*pnt == 0xff) && pnt < end)
+ while ((pnt < end) && (*pnt == 0xff))
{
len+= 8;
pnt++;