mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
in parallel to bumping up the buffer pointer.
This commit is contained in:
parent
32f65d5dae
commit
f4554c1121
@ -328,7 +328,9 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result,
|
||||
}
|
||||
cp += n;
|
||||
*alias_pointer++ = bp;
|
||||
bp += strlen (bp) + 1;
|
||||
n = strlen (bp) + 1;
|
||||
bp += n;
|
||||
linebuflen -= n;
|
||||
result->n_addrtype = class == C_IN ? AF_INET : AF_UNSPEC;
|
||||
++have_answer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user