diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-12 07:58:07 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-12 07:58:07 +0200 |
commit | 70099c7763b8c47a4bb1eef1c41601c602a83270 (patch) | |
tree | 8f254e04292431e24e15d8d3f702d14670d827e9 | |
parent | 83b7008e11f6d149f1926970b7c21cc50ce536ed (diff) | |
download | glibc-70099c7763b8c47a4bb1eef1c41601c602a83270.tar.gz |
nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-rw-r--r-- | nis/nis_local_names.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nis/nis_local_names.c b/nis/nis_local_names.c index 080dcf88bd..218764f32e 100644 --- a/nis/nis_local_names.c +++ b/nis/nis_local_names.c @@ -31,6 +31,7 @@ nis_local_group (void) char *cptr; if (__nisgroup[0] == '\0' && (cptr = getenv ("NIS_GROUP")) != NULL + && cptr[0] != '\0' && strlen (cptr) < NIS_MAXNAMELEN) { char *cp = stpcpy (__nisgroup, cptr); |