mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Update.
* resolv/gethnamaddr.c: Account bytes needed for alignment in buflen. Patch by Olaf Kibrch <okir@lst.de>.
This commit is contained in:
parent
654de60c00
commit
31a13ab3f9
@ -1,5 +1,8 @@
|
|||||||
1999-10-25 Ulrich Drepper <drepper@cygnus.com>
|
1999-10-25 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* resolv/gethnamaddr.c: Account bytes needed for alignment in
|
||||||
|
buflen. Patch by Olaf Kibrch <okir@lst.de>.
|
||||||
|
|
||||||
* md5-crypt/md5test.c: Correct names of MD5 functions after
|
* md5-crypt/md5test.c: Correct names of MD5 functions after
|
||||||
removing of public names.
|
removing of public names.
|
||||||
|
|
||||||
|
@ -420,6 +420,10 @@ getanswer(answer, anslen, qname, qtype)
|
|||||||
buflen -= nn;
|
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));
|
bp += sizeof(align) - ((u_long)bp % sizeof(align));
|
||||||
|
|
||||||
if (bp + n >= &hostbuf[sizeof hostbuf]) {
|
if (bp + n >= &hostbuf[sizeof hostbuf]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user