Fix a minor last, minute issue that came in after I committed.

Noticed by: nectar
This commit is contained in:
Warner Losh 2002-06-26 06:23:22 +00:00
parent 4cf0747073
commit fda8311189

View File

@ -396,8 +396,8 @@ gethostanswer(answer, anslen, qname, qtype)
buflen -= nn;
}
bp += sizeof(align) - ((u_long)bp % sizeof(align));
buflen -= sizeof(align) - ((u_long)bp % sizeof(align));
bp += sizeof(align) - ((u_long)bp % sizeof(align));
if (bp + n >= &hostbuf[sizeof hostbuf]) {
dprintf("size (%d) too big\n", n);