diff options
| author | Florian Weimer <fweimer@redhat.com> | 2023-02-21 09:20:28 +0100 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2023-03-07 10:01:44 +0100 |
| commit | 969e9733c7d17edf1e239a73fa172f357561f440 (patch) | |
| tree | 0b7fc604681dafe3fa4f2eec0b60d2a20f833325 /string/explicit_bzero.c | |
| parent | 8390014c2320f94ffd8a8f6088c10c1f64567954 (diff) | |
| download | glibc-969e9733c7d17edf1e239a73fa172f357561f440.tar.xz glibc-969e9733c7d17edf1e239a73fa172f357561f440.zip | |
gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)
Before this change, sgetsgent_r did not set errno to ERANGE, but
sgetsgent only check errno, not the return value from sgetsgent_r.
Consequently, sgetsgent did not detect any error, and reported
success to the caller, without initializing the struct sgrp object
whose address was returned.
This commit changes sgetsgent_r to set errno as well. This avoids
similar issues in applications which only change errno.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'string/explicit_bzero.c')
0 files changed, 0 insertions, 0 deletions
