BUG in arp.c is found

really A.N.Kuznetsov (inr-linux-kernel@ms2.inr.ac.ru)
Sun, 3 Mar 1996 19:09:25 +0300 (MSK)


Hi, all!

Thanks to Thomas Koenig!
This bug was really ugly, I am ashamed...

int arp_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
{
..........

len += size;
pos += size;

if (pos <= offset)
len=0;
if (pos >= offset+length)
#ifdef NO_ANK_FIX
break;
#else
goto done;
#endif
}
}
#ifndef NO_ANK_FIX
done:
#endif
arp_unlock();
.............
}

Alexey Kuznetsov.