diff options
author | Andreas Schwab <schwab@suse.de> | 2002-07-02 09:38:29 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2002-07-02 09:38:29 +0000 |
commit | e377fc183c914de6c79a2f308d56a40823c6dc71 (patch) | |
tree | 8ba14bf6a76bbf6131bad76c68cb64a3fee383e2 /resolv | |
parent | 2e331a6645dc1c670e52a49ee5d1250971658249 (diff) | |
download | glibc-e377fc183c914de6c79a2f308d56a40823c6dc71.tar.gz glibc-e377fc183c914de6c79a2f308d56a40823c6dc71.tar.xz glibc-e377fc183c914de6c79a2f308d56a40823c6dc71.zip |
* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
in parallel to bumping up the buffer pointer.
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/nss_dns/dns-network.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c index 38acc96dff..105b81f48b 100644 --- a/resolv/nss_dns/dns-network.c +++ b/resolv/nss_dns/dns-network.c @@ -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; } |