diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-05-01 22:33:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-05-01 22:33:24 +0000 |
commit | 1e528c6e1bd9d6c7d952456eab826362f489dfbd (patch) | |
tree | 15e71e08ffc7b7179b3b275e599595864818adc8 /nis/nss_nis | |
parent | * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't try to (diff) | |
download | glibc-1e528c6e1bd9d6c7d952456eab826362f489dfbd.tar.gz glibc-1e528c6e1bd9d6c7d952456eab826362f489dfbd.tar.bz2 glibc-1e528c6e1bd9d6c7d952456eab826362f489dfbd.zip |
* nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r): Don't try to
free outkey in error case when batch_read is set.
Diffstat (limited to 'nis/nss_nis')
-rw-r--r-- | nis/nss_nis/nis-pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-pwd.c b/nis/nss_nis/nis-pwd.c index 7972118c84..1b5206ad6d 100644 --- a/nis/nss_nis/nis-pwd.c +++ b/nis/nss_nis/nis-pwd.c @@ -333,7 +333,8 @@ internal_nis_getpwent_r (struct passwd *pwd, char *buffer, size_t buflen, errnop); if (__builtin_expect (parse_res == -1, 0)) { - free (outkey); + if (!batch_read) + free (outkey); *errnop = ERANGE; return NSS_STATUS_TRYAGAIN; } |