mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
(nscd_getgr_r): Don't count the alloca'ed memory for buffer.
This commit is contained in:
parent
d677a1bcdb
commit
f80a4f6e0c
@ -180,7 +180,7 @@ nscd_getgr_r (const char *key, size_t keylen, request_type type,
|
||||
vec[1].iov_len = gr_resp.gr_name_len + gr_resp.gr_passwd_len;
|
||||
total_len += gr_resp.gr_name_len + gr_resp.gr_passwd_len;
|
||||
|
||||
buflen -= total_len;
|
||||
buflen -= gr_resp.gr_name_len + gr_resp.gr_passwd_len;
|
||||
|
||||
/* Get this data. */
|
||||
if (__readv (sock, vec, 2) != total_len)
|
||||
|
Loading…
Reference in New Issue
Block a user