mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
Account bytes needed for alignment in buflen.
This commit is contained in:
parent
79edb23ce3
commit
58f44f88d2
@ -424,6 +424,10 @@ getanswer(answer, anslen, qname, qtype)
|
||||
buflen -= nn;
|
||||
}
|
||||
|
||||
/* XXX: when incrementing bp, we have to decrement
|
||||
* buflen by the same amount --okir */
|
||||
buflen -= sizeof(align) - ((u_long)bp % sizeof(align));
|
||||
|
||||
bp += sizeof(align) - ((u_long)bp % sizeof(align));
|
||||
|
||||
if (bp + n >= &hostbuf[sizeof hostbuf]) {
|
||||
|
Loading…
Reference in New Issue
Block a user